Correctly open tutorial when opening an asset for a tutorial.

Make sure we have an overlay constructed for the window we just created for the asset.

TTP# 347174 - TUTORIAL: When clicking on a sub editor tutorial, the tutorial does not automatically popup if the sub editor is not already opened

[CL 2305305 by Thomas Sarkanen in Main branch]
This commit is contained in:
Thomas Sarkanen
2014-09-22 09:41:50 -04:00
committed by UnrealBot
parent 525b290de8
commit f9b46bc4d6

View File

@@ -116,6 +116,12 @@ void STutorialRoot::LaunchTutorial(UEditorTutorial* InTutorial, bool bInRestart,
if(Toolkit.IsValid())
{
InNavigationWindow = FSlateApplication::Get().FindWidgetWindow(Toolkit->GetToolkitHost()->GetParentWidget());
// make sure we have a valid tutorial overlay
if(InNavigationWindow.IsValid())
{
MaybeAddOverlay(InNavigationWindow.Pin().ToSharedRef());
}
}
}
}