diff options
| author | John Peterson <jpeterson57@gmail.com> | 2009-09-01 12:44:02 +0000 |
|---|---|---|
| committer | John Peterson <jpeterson57@gmail.com> | 2009-09-01 12:44:02 +0000 |
| commit | 478ed4b11e42347dc77bbd9e4e8603a8654b8703 (patch) | |
| tree | 5c73f4e2e29c672725a26a9ae4f84b4dff896b25 /Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | |
| parent | bd227d3831c48450316d735a057a3daaa9e249d1 (diff) | |
GUI: Bugfixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4137 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp index c6983c55a2..21bda68a7f 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp @@ -418,6 +418,20 @@ void CCodeWindow::OnToggleMemoryWindow(bool Show, int i) #endif } + + +/* + + + +Notice: This windows docking for plugin windows will produce several wx debugging messages when +::GetWindowRect and ::DestroyWindow fails in wxApp::CleanUp() for the plugin. + + + +*/ + + //Toggle Sound Debugging Window void CCodeWindow::OnToggleSoundWindow(bool Show, int i) { @@ -446,13 +460,10 @@ void CCodeWindow::OnToggleSoundWindow(bool Show, int i) Win = Parent->GetWxWindow(wxT("Sound")); if (Win) { - //Parent->ListChildren(); Win->SetName(wxT("Sound")); Win->Reparent(Parent); - //Console->Log(LogTypes::LNOTICE, StringFromFormat("Reparent\n").c_str()); - //Parent->ListChildren(); Parent->GetNotebook(i)->AddPage(Win, wxT("Sound"), true, Parent->aNormalFile ); - Console->Log(LogTypes::LNOTICE, StringFromFormat("AddPage\n").c_str()); + //Console->Log(LogTypes::LNOTICE, StringFromFormat("AddPage\n").c_str()); //Parent->ListChildren(); //Console->Log(LogTypes::LNOTICE, StringFromFormat("OpenDebug: Win %i\n", FindWindowByName(wxT("Sound"))).c_str()); } @@ -466,7 +477,15 @@ void CCodeWindow::OnToggleSoundWindow(bool Show, int i) { #ifdef _WIN32 wxWindow *Win = Parent->GetWxWindow(wxT("Sound")); - Parent->DoRemovePage(Win, false); + if (Win) + { + Parent->DoRemovePage(Win, false); + //Console->Log(LogTypes::LNOTICE, StringFromFormat("Sound removed from NB (Win %i)\n", FindWindowByName(wxT("Sound"))).c_str()); + } + else + { + //Console->Log(LogTypes::LNOTICE, StringFromFormat("Sound not found (Win %i)\n", FindWindowByName(wxT("Sound"))).c_str()); + } #endif // Close the sound dll that has an open debugger CPluginManager::GetInstance().OpenDebug( |
