exclude user events during sleep

BUG:266092
This commit is contained in:
Aaron Seigo 2011-12-02 15:31:00 +01:00 committed by Marco Martin
parent 13164dd664
commit 5362e4e3b6

View File

@ -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