exclude user events during sleep
BUG:266092
This commit is contained in:
parent
13164dd664
commit
5362e4e3b6
@ -150,7 +150,7 @@ void AppInterface::sleep(int ms)
|
|||||||
{
|
{
|
||||||
QEventLoop loop;
|
QEventLoop loop;
|
||||||
QTimer::singleShot(ms, &loop, SLOT(quit()));
|
QTimer::singleShot(ms, &loop, SLOT(quit()));
|
||||||
loop.exec();
|
loop.exec(QEventLoop::ExcludeUserInputEvents);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AppInterface::hasBattery() const
|
bool AppInterface::hasBattery() const
|
||||||
|
Loading…
Reference in New Issue
Block a user