1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

gui: Fix OpenCorrectionDialog message

It was incorrectly trying to get the previous setting value after updating the setting
This commit is contained in:
Ani 2018-11-06 22:37:26 +00:00 committed by Megamouse
parent 11681f02cc
commit 2abbedcc50

View File

@ -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();