summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2016-11-10 16:50:13 +0100
committerGitHub <noreply@github.com>2016-11-10 16:50:13 +0100
commit03878a44e1fac47e30bb04ae424570aeafca9619 (patch)
treed0f24d7c4ef4ca4ec3a5659761058dec3109d710 /Source/Core
parent208ca4dd1584fb02cab301920209e40e889ed8f2 (diff)
parentde50fead5ce0d0afb9968fe6d751692c3ab0a1b7 (diff)
Merge pull request #4433 from Armada651/the-emu-that-runs-faster-than-its-race-condition
FrameTools: Avoid deadlock in UpdateGUI().
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/FrameTools.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp
index d4e3c642e5..58f8c34afb 100644
--- a/Source/Core/DolphinWX/FrameTools.cpp
+++ b/Source/Core/DolphinWX/FrameTools.cpp
@@ -1404,8 +1404,8 @@ void CFrame::UpdateGUI()
// Tools
GetMenuBar()->FindItem(IDM_CHEATS)->Enable(SConfig::GetInstance().bEnableCheats);
- bool ShouldEnableWiimotes = Initialized && SConfig::GetInstance().bWii &&
- !SConfig::GetInstance().m_bt_passthrough_enabled;
+ bool ShouldEnableWiimotes =
+ Running && SConfig::GetInstance().bWii && !SConfig::GetInstance().m_bt_passthrough_enabled;
GetMenuBar()->FindItem(IDM_CONNECT_WIIMOTE1)->Enable(ShouldEnableWiimotes);
GetMenuBar()->FindItem(IDM_CONNECT_WIIMOTE2)->Enable(ShouldEnableWiimotes);
GetMenuBar()->FindItem(IDM_CONNECT_WIIMOTE3)->Enable(ShouldEnableWiimotes);