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>
This commit is contained in:
jan Iversen 2018-05-22 09:20:40 +02:00 committed by Dirk Hohndel
parent 80224a98b1
commit 2d1e5d7a99

View file

@ -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);
}