fix for TTP #3390990 "GNavigationBuildingNotification has ill-defined destruction order" #UE4

[CL 2260662 by sebastian kowalczyk in Main branch]
This commit is contained in:
sebastian kowalczyk
2014-08-18 06:58:05 -04:00
committed by UnrealBot
parent 1a1cc8ee53
commit 9a72a87722
4 changed files with 61 additions and 48 deletions

View File

@@ -4,53 +4,7 @@
#include "MainFrame.h"
#include "Kismet2/DebuggerCommands.h"
#include "EditorBuildUtils.h"
/** Notification class for asynchronous shader compiling. */
class FNavigationBuildingNotificationImpl
: public FTickableEditorObject
{
public:
FNavigationBuildingNotificationImpl()
{
bPreviouslyDetectedBuild = false;
LastEnableTime = 0;
}
/** Starts the notification. */
void BuildStarted();
/** Ends the notification. */
void BuildFinished();
protected:
/** FTickableEditorObject interface */
virtual void Tick(float DeltaTime);
virtual bool IsTickable() const
{
return true;
}
virtual TStatId GetStatId() const override;
private:
void ClearCompleteNotification();
bool bPreviouslyDetectedBuild;
double TimeOfStartedBuild;
double TimeOfStoppedBuild;
/** Tracks the last time the notification was started, used to avoid spamming. */
double LastEnableTime;
TWeakPtr<SNotificationItem> NavigationBuiltCompleteNotification;
/** The source code symbol query in progress message */
TWeakPtr<SNotificationItem> NavigationBuildNotificationPtr;
};
/** Instance. */
FNavigationBuildingNotificationImpl GNavigationBuildingNotification;
#include "NavigationBuildingNotification.h"
void FNavigationBuildingNotificationImpl::BuildStarted()
{