diff --git a/src/core/Tools.cpp b/src/core/Tools.cpp index c0525e7b..04d053bb 100644 --- a/src/core/Tools.cpp +++ b/src/core/Tools.cpp @@ -193,7 +193,6 @@ void wait(int ms) if (ms <= 50) { QCoreApplication::processEvents(QEventLoop::AllEvents, ms); - QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete); sleep(qMax(ms - static_cast(timer.elapsed()), 0)); } else { @@ -202,7 +201,6 @@ void wait(int ms) timeLeft = ms - timer.elapsed(); if (timeLeft > 0) { QCoreApplication::processEvents(QEventLoop::AllEvents, timeLeft); - QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete); sleep(10); } } while (timer.elapsed() < ms);