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:
parent
9f54c187b0
commit
1136ac0b7c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user