mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 17:27:38 +00:00
inactivity lock: restore Qt 5 hack
This commit is contained in:
parent
e7ef6d0ed3
commit
1e4e9a2674
1 changed files with 8 additions and 4 deletions
|
@ -1654,11 +1654,15 @@ void MainWindow::checkUserActivity() {
|
||||||
this->close();
|
this->close();
|
||||||
// This doesn't close the wallet immediately.
|
// This doesn't close the wallet immediately.
|
||||||
// FIXME
|
// FIXME
|
||||||
// do {
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
|
do {
|
||||||
|
#endif
|
||||||
QApplication::processEvents();
|
QApplication::processEvents();
|
||||||
// Because running it a single time is apparently not enough.
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
// TODO: Qt bug? Need proper fix for this.
|
// Because running it a single time is apparently not enough.
|
||||||
// } while (QApplication::hasPendingEvents());
|
// TODO: Qt bug? Need proper fix for this.
|
||||||
|
} while (QApplication::hasPendingEvents());
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
m_checkUserActivity.start();
|
m_checkUserActivity.start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue