From: tobtoht Date: Thu, 23 Jun 2022 18:07:16 +0000 (+0200) Subject: inactivity lock: restore Qt 5 hack X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=1e4e9a2674d05e7a9e099e395c8b3b80771c45bd;p=gamesguru%2Ffeather.git inactivity lock: restore Qt 5 hack --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index adb6658d..c90cf2ff 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -1654,11 +1654,15 @@ void MainWindow::checkUserActivity() { this->close(); // This doesn't close the wallet immediately. // FIXME -// do { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + do { +#endif QApplication::processEvents(); - // Because running it a single time is apparently not enough. - // TODO: Qt bug? Need proper fix for this. -// } while (QApplication::hasPendingEvents()); +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + // Because running it a single time is apparently not enough. + // TODO: Qt bug? Need proper fix for this. + } while (QApplication::hasPendingEvents()); +#endif } else { m_checkUserActivity.start(); }