Skip to content

Commit

Permalink
fix opened .uproject is a relativepath
Browse files Browse the repository at this point in the history
  • Loading branch information
hxhb committed Mar 4, 2019
1 parent b3e5afa commit 1127a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Private/UI/WidgetUELauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ FReply SWidgetUELauncher::OnOpenProjectFileClicked()
const bool bOpened = DesktopPlatform->OpenFileDialog(
(ParentWindow.IsValid()) ? ParentWindow->GetNativeWindow()->GetOSWindowHandle() : nullptr,
LOCTEXT("OpenUEProjectDialogTitle", "Open .uproject").ToString(),
FPaths::GameAgnosticSavedDir(),
FString(TEXT("C:\\")),
TEXT(""),
TEXT("UE4 Project (*.uproject)|*.uproject"),
EFileDialogFlags::None,
Expand All @@ -380,7 +380,7 @@ FReply SWidgetUELauncher::OnOpenProjectFileClicked()

if (OpenFilenames.Num() > 0)
{
OpenProjectFilePath = OpenFilenames[0];
OpenProjectFilePath = FPaths::ConvertRelativePathToFull(OpenFilenames[0]);
}
}
return FReply::Handled();
Expand Down

0 comments on commit 1127a05

Please sign in to comment.