FSourceControlModule::ShowLoginDialog will now properly show the window as modal if needed when RootWindow is NULL

[CL 2322621 by Michael Trepka in Main branch]
This commit is contained in:
Michael Trepka
2014-10-08 09:58:56 -04:00
committed by UnrealBot
parent aad459c06d
commit 6de96b021a

View File

@@ -149,7 +149,14 @@ void FSourceControlModule::ShowLoginDialog(const FSourceControlLoginClosed& InOn
}
else
{
FSlateApplication::Get().AddWindow(SourceControlLoginWindowPtr.ToSharedRef());
if(InLoginWindowMode == ELoginWindowMode::Modal)
{
FSlateApplication::Get().AddModalWindow(SourceControlLoginWindowPtr.ToSharedRef(), RootWindow);
}
else
{
FSlateApplication::Get().AddWindow(SourceControlLoginWindowPtr.ToSharedRef());
}
}
}
#else