Permalink
Browse files

Merge pull request #7586 from Techjar/controller-dialog-button-thing

Qt/ControllersWindow: Fix incorrect enabled states of configure buttons
  • Loading branch information...
delroth committed Nov 29, 2018
2 parents ad890d5 + 9bb3c7d commit 09deed8aa44c27922585c5af5e9422c2b1b6f789
Showing with 4 additions and 0 deletions.
  1. +4 −0 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);

0 comments on commit 09deed8

Please sign in to comment.