summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp')
-rw-r--r--Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp
index 63be782f05..f4d67457a2 100644
--- a/Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp
+++ b/Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp
@@ -37,7 +37,7 @@ extern bool gOnlyLooping;
// =======================================================================================
// Declare events
-BEGIN_EVENT_TABLE(CDebugger,wxDialog)
+BEGIN_EVENT_TABLE(CDebugger,wxDialog)
EVT_CLOSE(CDebugger::OnClose)
EVT_BUTTON(ID_UPD,CDebugger::OnUpdate)
EVT_CHECKBOX(IDC_CHECK0,CDebugger::SaveFile)
@@ -74,7 +74,6 @@ CDebugger::~CDebugger()
// empty
IniFile file;
file.Load("Debugger.ini");
-
this->Save(file);
file.Save("Debugger.ini");
}
@@ -266,7 +265,13 @@ SetTitle(wxT("Sound Debugging"));
}
void CDebugger::OnClose(wxCloseEvent& /*event*/)
-{
+{
+ // save the window position when we hide the window to
+ IniFile file;
+ file.Load("Debugger.ini");
+ this->Save(file);
+ file.Save("Debugger.ini");
+
EndModal(0);
// I turned this off for now because of the ShowModal() problem and because I wanted
@@ -428,7 +433,6 @@ void CDebugger::DoShowHideConsole()
if(m_Check[2]->IsChecked())
{
OpenConsole();
-
}
else
{