From d1475dfb9ce44b675a3bf002101c07ff5076145f Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Tue, 20 Sep 2016 18:19:33 -0700 Subject: 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. --- Source/Core/DolphinWX/LogConfigWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinWX/LogConfigWindow.cpp') 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(); } -- cgit v1.2.3