mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:33:24 +00:00
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:
parent
80224a98b1
commit
2d1e5d7a99
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue