mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
gui: Fix OpenCorrectionDialog message
It was incorrectly trying to get the previous setting value after updating the setting
This commit is contained in:
parent
11681f02cc
commit
2abbedcc50
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
#include "emu_settings.h"
|
#include "emu_settings.h"
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "Emu/System.h"
|
#include "Emu/System.h"
|
||||||
|
@ -494,8 +494,9 @@ void emu_settings::OpenCorrectionDialog(QWidget* parent)
|
||||||
for (const auto& type : m_broken_types)
|
for (const auto& type : m_broken_types)
|
||||||
{
|
{
|
||||||
std::string def = GetSettingDefault(type);
|
std::string def = GetSettingDefault(type);
|
||||||
|
std::string old = GetSetting(type);
|
||||||
SetSetting(type, def);
|
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();
|
m_broken_types.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue