From 41973d0e9233d969f79a39c044e7db4086b6ade6 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 3 Nov 2012 15:12:04 +0100 Subject: [PATCH] Revert "Handle DeferredDelete events in Tools::wait()." Caused a crash when performing auto-type from AutoTypeSelectDialog. This reverts commit 6b3fed1ce5823cbc18d479c1d17f3392d3fb0ea6. --- src/core/Tools.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/Tools.cpp b/src/core/Tools.cpp index c0525e7b1..04d053bb3 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);