From 7de9ff10a8b4bc6bf7752433b0f23bd374bb7947 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Tue, 4 Oct 2016 02:02:07 -0700 Subject: [PATCH] Restore saving logger settings to .ini --- Source/Core/DolphinWX/LogConfigWindow.cpp | 5 +++++ Source/Core/DolphinWX/LogConfigWindow.h | 1 + 2 files changed, 6 insertions(+) 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();