Get the status bar working in linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5011 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f4e8385973
commit
722488a0b3
|
@ -623,10 +623,7 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
|
|||
case IDM_UPDATESTATUSBAR:
|
||||
if (m_pStatusBar != NULL)
|
||||
{
|
||||
// Linux doesn't like it since the message isn't coming from the GUI thread. We need to change this to post a message to the Frame.
|
||||
#ifdef _WIN32
|
||||
m_pStatusBar->SetStatusText(event.GetString(), event.GetInt());
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -663,6 +663,7 @@ void Host_UpdateStatusBar(const char* _pText, int Field)
|
|||
event.StopPropagation();
|
||||
main_frame->GetEventHandler()->AddPendingEvent(event);
|
||||
// Process the event before continue
|
||||
if (wxGetApp().Pending())
|
||||
wxGetApp().ProcessPendingEvents();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue