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
This commit is contained in:
@@ -187,14 +187,14 @@ extern "C"
|
|||||||
static gint wxapp_idle_callback( gpointer WXUNUSED(data) )
|
static gint wxapp_idle_callback( gpointer WXUNUSED(data) )
|
||||||
{
|
{
|
||||||
if (!wxTheApp)
|
if (!wxTheApp)
|
||||||
return TRUE;
|
return false;
|
||||||
|
|
||||||
#ifdef __WXDEBUG__
|
#ifdef __WXDEBUG__
|
||||||
// don't generate the idle events while the assert modal dialog is shown,
|
// 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
|
// this completely confuses the apps which don't expect to be reentered
|
||||||
// from some safely-looking functions
|
// from some safely-looking functions
|
||||||
if ( wxTheApp->IsInAssert() )
|
if ( wxTheApp->IsInAssert() )
|
||||||
return TRUE;
|
return false;
|
||||||
#endif // __WXDEBUG__
|
#endif // __WXDEBUG__
|
||||||
|
|
||||||
// When getting called from GDK's time-out handler
|
// When getting called from GDK's time-out handler
|
||||||
|
Reference in New Issue
Block a user