diff options
| author | JMC47 <JMC4789@gmail.com> | 2019-03-25 19:28:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-25 19:28:22 -0400 |
| commit | e636b3e7120a9f6e8899425ec668e1f1f8e40b17 (patch) | |
| tree | 0b7087e9b15d8e8266dc9cb092bf376acb4d3d27 /Source/Core/DolphinQt/Config/ControllersWindow.cpp | |
| parent | 8bad3f93f134efeaecc2483f5ede374064f64563 (diff) | |
| parent | 49218c32ed0737dc69e5a01e342d08ac1cf5f52c (diff) | |
Merge pull request #7871 from jordan-woyak/wm-real-cleanup
WiimoteReal: Improve state changes and code cleanups.
Diffstat (limited to 'Source/Core/DolphinQt/Config/ControllersWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/ControllersWindow.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Config/ControllersWindow.cpp b/Source/Core/DolphinQt/Config/ControllersWindow.cpp index 75d99495a8..fb5813bdc1 100644 --- a/Source/Core/DolphinQt/Config/ControllersWindow.cpp +++ b/Source/Core/DolphinQt/Config/ControllersWindow.cpp @@ -496,11 +496,8 @@ void ControllersWindow::SaveSettings() for (size_t i = 0; i < m_wiimote_groups.size(); i++) { const int index = m_wiimote_boxes[i]->currentIndex(); - g_wiimote_sources[i] = index; m_wiimote_buttons[i]->setEnabled(index != 0 && index != 2); - - if (Core::IsRunning()) - WiimoteReal::ChangeWiimoteSource(static_cast<u32>(i), index); + WiimoteReal::ChangeWiimoteSource(static_cast<u32>(i), index); } UICommon::SaveWiimoteSources(); |
