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

@@ -147,7 +147,7 @@ void wxQtEventLoopBase::DoYieldFor(long eventsToProcess)
void wxQtEventLoopBase::ScheduleIdleCheck()
{
if ( IsInsideRun() )
if ( IsInsideRun() && !m_shouldExit )
m_qtIdleTimer->start(0);
}