From 2abbedcc5083b3d430d06e66732309d5824ac91b Mon Sep 17 00:00:00 2001 From: Ani Date: Tue, 6 Nov 2018 22:37:26 +0000 Subject: [PATCH] gui: Fix OpenCorrectionDialog message It was incorrectly trying to get the previous setting value after updating the setting --- rpcs3/rpcs3qt/emu_settings.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rpcs3/rpcs3qt/emu_settings.cpp b/rpcs3/rpcs3qt/emu_settings.cpp index 4feccf0814..cb622e9a75 100644 --- a/rpcs3/rpcs3qt/emu_settings.cpp +++ b/rpcs3/rpcs3qt/emu_settings.cpp @@ -1,4 +1,4 @@ -#include "emu_settings.h" +#include "emu_settings.h" #include "stdafx.h" #include "Emu/System.h" @@ -494,8 +494,9 @@ void emu_settings::OpenCorrectionDialog(QWidget* parent) for (const auto& type : m_broken_types) { std::string def = GetSettingDefault(type); + std::string old = GetSetting(type); SetSetting(type, def); - LOG_SUCCESS(GENERAL, "The config entry '%s' was corrected from '%s' to '%s'", GetSettingName(type), GetSetting(type), def); + LOG_SUCCESS(GENERAL, "The config entry '%s' was corrected from '%s' to '%s'", GetSettingName(type), old, def); } m_broken_types.clear();