X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be88a6ade981b99d55fa1da20cd1a12be4a075f2..92980e9076469956e1e2cb94df97d0f8d873114a:/src/gtk1/app.cpp diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index b5045c14bb..93e2ee3d05 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -24,6 +24,7 @@ #include "wx/font.h" #include "wx/settings.h" #include "wx/dialog.h" +#include "wx/msgdlg.h" #if wxUSE_WX_RESOURCES #include "wx/resource.h" @@ -212,6 +213,13 @@ static gint wxapp_idle_callback( gpointer WXUNUSED(data) ) // from some safely-looking functions if ( wxTheApp->IsInAssert() ) { + // But repaint the assertion message if necessary + if (wxTopLevelWindows.GetCount() > 0) + { + wxWindow* win = (wxWindow*) wxTopLevelWindows.Last()->Data(); + if (win->IsKindOf(CLASSINFO(wxGenericMessageDialog))) + win->OnInternalIdle(); + } return TRUE; } #endif // __WXDEBUG__ @@ -536,7 +544,7 @@ bool wxApp::SendIdleEvents( wxWindow* win ) event.SetEventObject(win); win->GetEventHandler()->ProcessEvent(event); - + if (event.MoreRequested()) needMore = TRUE;