mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
Revert "Handle DeferredDelete events in Tools::wait()."
Caused a crash when performing auto-type from AutoTypeSelectDialog.
This reverts commit 6b3fed1ce5
.
This commit is contained in:
parent
363396037d
commit
41973d0e92
@ -193,7 +193,6 @@ void wait(int ms)
|
|||||||
|
|
||||||
if (ms <= 50) {
|
if (ms <= 50) {
|
||||||
QCoreApplication::processEvents(QEventLoop::AllEvents, ms);
|
QCoreApplication::processEvents(QEventLoop::AllEvents, ms);
|
||||||
QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete);
|
|
||||||
sleep(qMax(ms - static_cast<int>(timer.elapsed()), 0));
|
sleep(qMax(ms - static_cast<int>(timer.elapsed()), 0));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -202,7 +201,6 @@ void wait(int ms)
|
|||||||
timeLeft = ms - timer.elapsed();
|
timeLeft = ms - timer.elapsed();
|
||||||
if (timeLeft > 0) {
|
if (timeLeft > 0) {
|
||||||
QCoreApplication::processEvents(QEventLoop::AllEvents, timeLeft);
|
QCoreApplication::processEvents(QEventLoop::AllEvents, timeLeft);
|
||||||
QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete);
|
|
||||||
sleep(10);
|
sleep(10);
|
||||||
}
|
}
|
||||||
} while (timer.elapsed() < ms);
|
} while (timer.elapsed() < ms);
|
||||||
|
Loading…
Reference in New Issue
Block a user