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