From 49218c32ed0737dc69e5a01e342d08ac1cf5f52c Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Thu, 7 Mar 2019 18:44:23 -0600 Subject: WiimoteReal: Improve state changes and minor code cleanups. --- Source/Core/DolphinQt/Config/ControllersWindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Source/Core/DolphinQt/Config/ControllersWindow.cpp') 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(i), index); + WiimoteReal::ChangeWiimoteSource(static_cast(i), index); } UICommon::SaveWiimoteSources(); -- cgit v1.2.3