Make ScheduleIdleCheck take into account whether the loop is exiting
This commit is contained in:
@@ -147,7 +147,7 @@ void wxQtEventLoopBase::DoYieldFor(long eventsToProcess)
|
|||||||
|
|
||||||
void wxQtEventLoopBase::ScheduleIdleCheck()
|
void wxQtEventLoopBase::ScheduleIdleCheck()
|
||||||
{
|
{
|
||||||
if ( IsInsideRun() )
|
if ( IsInsideRun() && !m_shouldExit )
|
||||||
m_qtIdleTimer->start(0);
|
m_qtIdleTimer->start(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user