You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
UE-16270: UnrealSync3 crashes on launch
The problem was with obtaining singleton shared ptr for SMainTabWidget. Fixed. [CL 2570352 by Jaroslaw Palczynski in Main branch]
This commit is contained in:
committed by
Jaroslaw.Palczynski@epicgames.com
parent
b2590e3eb2
commit
023dda3aae
@@ -1249,9 +1249,7 @@ public:
|
||||
|
||||
SMainTabWidget()
|
||||
: ExternalThreadsDispatcher(MakeShareable(new FExternalThreadsDispatcher())), P4Data(new FP4DataProxy)
|
||||
{
|
||||
GetSingletonPtr() = StaticCastSharedRef<SMainTabWidget>(this->AsShared());
|
||||
}
|
||||
{ }
|
||||
|
||||
/**
|
||||
* Gets instance of this class.
|
||||
@@ -1261,6 +1259,14 @@ public:
|
||||
return GetSingletonPtr();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates instance of this class.
|
||||
*/
|
||||
static TSharedRef<SMainTabWidget> CreateInstance()
|
||||
{
|
||||
return SAssignNew(GetSingletonPtr(), SMainTabWidget);
|
||||
}
|
||||
|
||||
SLATE_BEGIN_ARGS(SMainTabWidget) {}
|
||||
SLATE_END_ARGS()
|
||||
|
||||
@@ -2145,8 +2151,8 @@ TSharedRef<SDockTab> GetMainTab(const FSpawnTabArgs& Args)
|
||||
.ToolTipText(FText::FromString("Sync Unreal Engine tool."));
|
||||
|
||||
MainTab->SetContent(
|
||||
SNew(SMainTabWidget)
|
||||
);
|
||||
SMainTabWidget::CreateInstance()
|
||||
);
|
||||
|
||||
FGlobalTabmanager::Get()->SetActiveTab(MainTab);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user