diff options
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp index 3f829124f8..c616880632 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp @@ -138,13 +138,12 @@ void GeneralWidget::CreateWidgets() void GeneralWidget::ConnectWidgets() { // Video Backend - connect(m_backend_combo, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), - this, &GeneralWidget::SaveSettings); - connect(m_adapter_combo, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), - this, [](int index) { - g_Config.iAdapter = index; - Config::SetBaseOrCurrent(Config::GFX_ADAPTER, index); - }); + connect(m_backend_combo, qOverload<int>(&QComboBox::currentIndexChanged), this, + &GeneralWidget::SaveSettings); + connect(m_adapter_combo, qOverload<int>(&QComboBox::currentIndexChanged), this, [](int index) { + g_Config.iAdapter = index; + Config::SetBaseOrCurrent(Config::GFX_ADAPTER, index); + }); } void GeneralWidget::LoadSettings() |
