From 5362e4e3b6ff6e04114dd7861595ef8aa47701f2 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 2 Dec 2011 15:31:00 +0100 Subject: [PATCH] exclude user events during sleep BUG:266092 --- appinterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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