From df9ace09859d56df28b7ca78064fa0d99d566921 Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Fri, 28 Nov 2014 08:55:19 -0500 Subject: [PATCH] Fix wiimote connect hotkeys. --- Source/Core/DolphinWX/Frame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index 3784ae4bc9f3..dc5ce5026863 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -1175,8 +1175,9 @@ void CFrame::OnKeyDown(wxKeyEvent& event) // Actually perform the wiimote connection or disconnection if (WiimoteId >= 0) { - bool connect = !GetMenuBar()->IsChecked(IDM_CONNECT_WIIMOTE1 + WiimoteId); - ConnectWiimote(WiimoteId, connect); + wxCommandEvent evt; + evt.SetId(IDM_CONNECT_WIIMOTE1 + WiimoteId); + OnConnectWiimote(evt); } if (g_Config.bFreeLook)