From 567e90bbd58599934bede69eb3f72c36493d4370 Mon Sep 17 00:00:00 2001 From: nitsuja Date: Sun, 18 Dec 2011 20:38:54 -0800 Subject: [PATCH] fix for an un-threadsafe call to UpdateGUI (oops) --- Source/Core/DolphinWX/Src/Frame.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp index 846971e884..e7c4fca067 100644 --- a/Source/Core/DolphinWX/Src/Frame.cpp +++ b/Source/Core/DolphinWX/Src/Frame.cpp @@ -863,8 +863,12 @@ int GetCmdForHotkey(unsigned int key) void OnAfterLoadCallback() { + // warning: this gets called from the CPU thread, so we should only queue things to do on the proper thread if(main_frame) - main_frame->UpdateGUI(); + { + wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATEGUI); + main_frame->GetEventHandler()->AddPendingEvent(event); + } } void TASManipFunction(SPADStatus *PadStatus, int controllerID)