inactivity lock: restore Qt 5 hack

This commit is contained in:
tobtoht 2022-06-23 20:07:16 +02:00
parent e7ef6d0ed3
commit 1e4e9a2674
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View 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();
#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());
} while (QApplication::hasPendingEvents());
#endif
} else {
m_checkUserActivity.start();
}