summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/ControllersWindow.cpp
diff options
context:
space:
mode:
authorTechjar <tecknojar@gmail.com>2018-11-23 04:46:14 -0500
committerTechjar <tecknojar@gmail.com>2018-11-23 04:47:49 -0500
commit9bb3c7d8391b61e669af0e0cdf5126b8dcab8a75 (patch)
tree54cc285c9d6d9030a6a47946e37581c8da620aac /Source/Core/DolphinQt/Config/ControllersWindow.cpp
parent1805f51d798113fa839a8f3179360a6e4670c92f (diff)
Qt/ControllersWindow: Fix incorrect enabled states of configure buttons
All configure buttons would be enabled, although no-op, upon initialization of the dialog. Changing a setting to cause a save would fix them.
Diffstat (limited to 'Source/Core/DolphinQt/Config/ControllersWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/ControllersWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/ControllersWindow.cpp b/Source/Core/DolphinQt/Config/ControllersWindow.cpp
index b14284f916..b49a447ceb 100644
--- a/Source/Core/DolphinQt/Config/ControllersWindow.cpp
+++ b/Source/Core/DolphinQt/Config/ControllersWindow.cpp
@@ -465,8 +465,12 @@ void ControllersWindow::LoadSettings()
{
const std::optional<int> gc_index = ToGCMenuIndex(SConfig::GetInstance().m_SIDevice[i]);
if (gc_index)
+ {
m_gc_controller_boxes[i]->setCurrentIndex(*gc_index);
+ m_gc_buttons[i]->setEnabled(*gc_index != 0 && *gc_index != 6);
+ }
m_wiimote_boxes[i]->setCurrentIndex(g_wiimote_sources[i]);
+ m_wiimote_buttons[i]->setEnabled(g_wiimote_sources[i] != 0 && g_wiimote_sources[i] != 2);
}
m_wiimote_real_balance_board->setChecked(g_wiimote_sources[WIIMOTE_BALANCE_BOARD] ==
WIIMOTE_SRC_REAL);