diff --git a/appinterface.cpp b/appinterface.cpp index 70cdc88e4..78bb15837 100644 --- a/appinterface.cpp +++ b/appinterface.cpp @@ -150,7 +150,7 @@ void AppInterface::sleep(int ms) { QEventLoop loop; QTimer::singleShot(ms, &loop, SLOT(quit())); - loop.exec(); + loop.exec(QEventLoop::ExcludeUserInputEvents); } bool AppInterface::hasBattery() const