summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2022-03-22 21:50:49 +0100
committerGitHub <noreply@github.com>2022-03-22 21:50:49 +0100
commitc4dfd47182a1136073961c30dbccb301e48eae3a (patch)
tree6e584effaf4060ec7583f34cbed746e7d91aeb5d /Source
parentb466b9ef85e623820e446a17345b12f1065dd7a6 (diff)
parentc661a75961287448cd5ebc4bf10c4eb6d02e241a (diff)
Merge pull request #10527 from AdmiralCurtiss/speedlimit-combobox-fix
DolphinQt: Set emulation speed setting only when the combobox is actually touched.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt/Settings/GeneralPane.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Settings/GeneralPane.cpp b/Source/Core/DolphinQt/Settings/GeneralPane.cpp
index f877e68a27..c4ac573009 100644
--- a/Source/Core/DolphinQt/Settings/GeneralPane.cpp
+++ b/Source/Core/DolphinQt/Settings/GeneralPane.cpp
@@ -112,8 +112,11 @@ void GeneralPane::ConnectLayout()
}
// Advanced
- connect(m_combobox_speedlimit, qOverload<int>(&QComboBox::currentIndexChanged),
- [this]() { OnSaveConfig(); });
+ connect(m_combobox_speedlimit, qOverload<int>(&QComboBox::currentIndexChanged), [this]() {
+ Config::SetBaseOrCurrent(Config::MAIN_EMULATION_SPEED,
+ m_combobox_speedlimit->currentIndex() * 0.1f);
+ Config::Save();
+ });
connect(m_combobox_fallback_region, qOverload<int>(&QComboBox::currentIndexChanged), this,
&GeneralPane::OnSaveConfig);
@@ -354,8 +357,6 @@ void GeneralPane::OnSaveConfig()
m_checkbox_override_region_settings->isChecked());
Config::SetBase(Config::MAIN_AUTO_DISC_CHANGE, m_checkbox_auto_disc_change->isChecked());
Config::SetBaseOrCurrent(Config::MAIN_ENABLE_CHEATS, m_checkbox_cheats->isChecked());
- Config::SetBaseOrCurrent(Config::MAIN_EMULATION_SPEED,
- m_combobox_speedlimit->currentIndex() * 0.1f);
Settings::Instance().SetFallbackRegion(
UpdateFallbackRegionFromIndex(m_combobox_fallback_region->currentIndex()));