From 1136ac0b7c434a3d8dea2654c89a137651b2258f Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 26 Aug 2006 22:04:21 +0000 Subject: [PATCH] don't tie up cpu in idle loop when showing assert dialog git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/app.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 5331f64a78..b6e5363c01 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -187,14 +187,14 @@ extern "C" static gint wxapp_idle_callback( gpointer WXUNUSED(data) ) { if (!wxTheApp) - return TRUE; + return false; #ifdef __WXDEBUG__ // don't generate the idle events while the assert modal dialog is shown, // this completely confuses the apps which don't expect to be reentered // from some safely-looking functions if ( wxTheApp->IsInAssert() ) - return TRUE; + return false; #endif // __WXDEBUG__ // When getting called from GDK's time-out handler -- 2.45.2