]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
inactivity lock: restore Qt 5 hack
authortobtoht <thotbot@protonmail.com>
Thu, 23 Jun 2022 18:07:16 +0000 (20:07 +0200)
committertobtoht <thotbot@protonmail.com>
Thu, 23 Jun 2022 18:07:16 +0000 (20:07 +0200)
src/MainWindow.cpp

index adb6658d92a05380012b703e0d871222d8231496..c90cf2ff12454a2c149b5692f225f52f1935250d 100644 (file)
@@ -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();
         }