From 60594c079d2412e928aff6308cfce34cd6bec07d Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Sun, 21 Aug 2011 18:27:48 -0700 Subject: [PATCH] allow just ejecting the disc by canceling the file dialog --- Source/Core/DolphinWX/Src/FrameTools.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/Core/DolphinWX/Src/FrameTools.cpp b/Source/Core/DolphinWX/Src/FrameTools.cpp index 2ca28ce4dd..607c920906 100644 --- a/Source/Core/DolphinWX/Src/FrameTools.cpp +++ b/Source/Core/DolphinWX/Src/FrameTools.cpp @@ -678,11 +678,8 @@ void CFrame::DoOpen(bool Boot) File::SetCurrentDir(currentDir); } - if (path.IsEmpty()) - return; - // Should we boot a new game or just change the disc? - if (Boot) + if (Boot && !path.IsEmpty()) BootGame(std::string(path.mb_str())); else {