diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index 61fe0daccd..5289c6a711 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -233,9 +233,10 @@ void MyFrame::LogDialog(wxCommandEvent& event) wxLogMessage("This is some message - everything is ok so far."); wxLogMessage("Another message..."); wxLogWarning("And then something went wrong!"); + // if we have this wxYield() here, everything breaks under GTK + wxYield(); wxLogError("Intermediary error handler decided to abort."); wxLogError("The top level caller detected an error."); - wxLog::FlushActive(); wxLogMessage("And this is the same dialog but with only one message.");