cleaner while loop
This commit is contained in:
parent
73a584981e
commit
a89166a14f
1 changed files with 2 additions and 3 deletions
|
@ -56,8 +56,7 @@ void Application::run(void)
|
||||||
|
|
||||||
while (_appwidget_count > 0) {
|
while (_appwidget_count > 0) {
|
||||||
dispatchEvents();
|
dispatchEvents();
|
||||||
if (_appwidget_count <= 0)
|
if (_appwidget_count > 0)
|
||||||
break;
|
|
||||||
Timer::dispatchTimers(); // fire pending events
|
Timer::dispatchTimers(); // fire pending events
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue