From d73ea2b54d89530aac587fb1edf3ac494f1b5211 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 24 May 2022 17:53:45 +0200 Subject: [PATCH] Qt6: remove hasPendingEvents --- src/MainWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index c0a010bb..35b6b00c 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -1665,11 +1665,12 @@ void MainWindow::checkUserActivity() { this->setEnabled(false); this->close(); // This doesn't close the wallet immediately. - do { + // FIXME +// do { QApplication::processEvents(); // Because running it a single time is apparently not enough. // TODO: Qt bug? Need proper fix for this. - } while (QApplication::hasPendingEvents()); +// } while (QApplication::hasPendingEvents()); } else { m_checkUserActivity.start(); } -- 2.52.0