diff --git a/Source/Core/DolphinWX/LogConfigWindow.cpp b/Source/Core/DolphinWX/LogConfigWindow.cpp index 52562507f6..59b5a0963a 100644 --- a/Source/Core/DolphinWX/LogConfigWindow.cpp +++ b/Source/Core/DolphinWX/LogConfigWindow.cpp @@ -30,6 +30,11 @@ LogConfigWindow::LogConfigWindow(wxWindow* parent, wxWindowID id) LoadSettings(); } +LogConfigWindow::~LogConfigWindow() +{ + SaveSettings(); +} + void LogConfigWindow::CreateGUIControls() { // Verbosity diff --git a/Source/Core/DolphinWX/LogConfigWindow.h b/Source/Core/DolphinWX/LogConfigWindow.h index 027372880b..f9a3a4806d 100644 --- a/Source/Core/DolphinWX/LogConfigWindow.h +++ b/Source/Core/DolphinWX/LogConfigWindow.h @@ -15,6 +15,7 @@ class LogConfigWindow : public wxPanel { public: LogConfigWindow(wxWindow* parent, wxWindowID id = wxID_ANY); + ~LogConfigWindow(); void SaveSettings(); void LoadSettings();