From ce3eb85d96b63dda6e0ecf58c53e280888075bdf Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Mon, 26 Jul 2010 13:22:42 +0000 Subject: [PATCH] Fix an issue introduced in my last commit. When the debugger is not used and the log or console windows are closed from the menu the notebook is not closed. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5981 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/FrameAui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/Src/FrameAui.cpp b/Source/Core/DolphinWX/Src/FrameAui.cpp index 2d45bab0ba..91347a5fa6 100644 --- a/Source/Core/DolphinWX/Src/FrameAui.cpp +++ b/Source/Core/DolphinWX/Src/FrameAui.cpp @@ -420,7 +420,8 @@ void CFrame::DoRemovePage(wxWindow *Win, bool bHide) } } } - AddRemoveBlankPage(); + if (g_pCodeWindow) + AddRemoveBlankPage(); } void CFrame::DoAddPage(wxWindow *Win, int i, bool Float)