]> git.saurik.com Git - wxWidgets.git/commitdiff
don't tie up cpu in idle loop when showing assert dialog
authorPaul Cornett <paulcor@bullseye.com>
Sat, 26 Aug 2006 22:04:21 +0000 (22:04 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sat, 26 Aug 2006 22:04:21 +0000 (22:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/app.cpp

index 5331f64a782f57128e8cdd240a49746cc751f803..b6e5363c0155b3b7e3b9285dbced55859f67b495 100644 (file)
@@ -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