Make ScheduleIdleCheck take into account whether the loop is exiting

This commit is contained in:
Graham Dawes
2019-01-23 12:04:42 +00:00
parent b8f71efc04
commit 0c28952ff6

View File

@@ -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);
}