Qt6: remove hasPendingEvents

This commit is contained in:
tobtoht 2022-05-24 17:53:45 +02:00
parent db331ab9b2
commit d73ea2b54d
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -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();
}