From 2d1e5d7a992841bf2b76f5f85d2ab8419e22697f Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 22 May 2018 09:20:40 +0200 Subject: core: qt-ble.cpp remove postEvent for all platforms the postEvent is only called when downloading from a dc with bluetooth, so in most it does not have an effect on the deleteLater() in the code. there are no reason to do special cleanup while waiting for bluetooth QEvent::DeferredDelete is not supported on iOS. Signed-off-by: Jan Iversen --- core/qt-ble.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp index 3deec8e65..730d7148e 100644 --- a/core/qt-ble.cpp +++ b/core/qt-ble.cpp @@ -38,9 +38,6 @@ static void waitFor(int ms) { do { QCoreApplication::processEvents(QEventLoop::AllEvents, ms); -#if !defined(Q_OS_IOS) - QCoreApplication::sendPostedEvents(nullptr, QEvent::DeferredDelete); -#endif QThread::msleep(10); } while (timer.elapsed() < ms); } -- cgit v1.2.3-70-g09d2