mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
inactivity lock: restore Qt 5 hack
This commit is contained in:
+8
-4
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user