diff options
| author | Jules Blok <jules.blok@gmail.com> | 2016-11-09 01:45:30 +0100 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2016-11-09 01:45:30 +0100 |
| commit | de50fead5ce0d0afb9968fe6d751692c3ab0a1b7 (patch) | |
| tree | b2d5e175835aa2f024c99cf33688f24b234a55c1 /Source/Core/DolphinWX/FrameTools.cpp | |
| parent | 5378b6ab85122c246175e548991febc5786c31a9 (diff) | |
FrameTools: Avoid deadlock in UpdateGUI().
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index ee9903ea5a..5ac1c67c9b 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -1426,8 +1426,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); |
