diff options
author | jan Iversen <jani@libreoffice.org> | 2018-05-22 09:20:40 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-05-26 09:26:43 -0700 |
commit | 2d1e5d7a992841bf2b76f5f85d2ab8419e22697f (patch) | |
tree | 71daface25d9f535f9511f9a697c1c5703c669f7 | |
parent | 80224a98b1263fb1e89c7c46ecc2c51a96d0ffa4 (diff) | |
download | subsurface-2d1e5d7a992841bf2b76f5f85d2ab8419e22697f.tar.gz |
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 <jani@apache.org>
-rw-r--r-- | core/qt-ble.cpp | 3 |
1 files changed, 0 insertions, 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); } |