summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2010-07-26 13:22:42 +0000
committerGlenn Rice <glennricster@gmail.com>2010-07-26 13:22:42 +0000
commitce3eb85d96b63dda6e0ecf58c53e280888075bdf (patch)
treeab1558cc2d7f49cbfe0106206e19e69a1df6f711 /Source
parent5be58c6772c131cecbc1786a14f5265a9d99e159 (diff)
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
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/Src/FrameAui.cpp3
1 files changed, 2 insertions, 1 deletions
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)