summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/LogConfigWindow.cpp
diff options
context:
space:
mode:
authorMichael Maltese <michaeljosephmaltese@gmail.com>2016-09-20 18:19:33 -0700
committerMichael Maltese <michaeljosephmaltese@gmail.com>2016-09-25 17:06:46 -0400
commitd1475dfb9ce44b675a3bf002101c07ff5076145f (patch)
tree778392768787f70bbfcf5b989ef90296815512dc /Source/Core/DolphinWX/LogConfigWindow.cpp
parent58d0e223547dd111d3e8975ad6ff7f1988fbddfe (diff)
Move LogWindow/LogConfigWindow destructor logic -> OnClose
Fixes the issue on macOS where quitting Dolphin from the Dock causes a crash report (https://bugs.dolphin-emu.org/issues/9794). I'm not exactly sure why this works, but it feels right and it turns out to fix the problem.
Diffstat (limited to 'Source/Core/DolphinWX/LogConfigWindow.cpp')
-rw-r--r--Source/Core/DolphinWX/LogConfigWindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/LogConfigWindow.cpp b/Source/Core/DolphinWX/LogConfigWindow.cpp
index d6c6b76860..da517d288f 100644
--- a/Source/Core/DolphinWX/LogConfigWindow.cpp
+++ b/Source/Core/DolphinWX/LogConfigWindow.cpp
@@ -25,13 +25,14 @@ LogConfigWindow::LogConfigWindow(wxWindow* parent, wxWindowID id)
_("Log Configuration")),
enableAll(true)
{
+ Bind(wxEVT_CLOSE_WINDOW, &LogConfigWindow::OnClose, this);
SetMinSize(wxSize(100, 100));
m_LogManager = LogManager::GetInstance();
CreateGUIControls();
LoadSettings();
}
-LogConfigWindow::~LogConfigWindow()
+void LogConfigWindow::OnClose(wxCloseEvent& event)
{
SaveSettings();
}