From 77882b46dbeb1f626f052e2eb3cb200d44f3e3ff Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 22 Jan 2003 23:11:30 +0000 Subject: [PATCH] break when no more widgets showing --- otk/application.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/otk/application.cc b/otk/application.cc index e4de62c1..efe86d15 100644 --- a/otk/application.cc +++ b/otk/application.cc @@ -63,6 +63,8 @@ void Application::run(void) while (_appwidget_count > 0) { dispatchEvents(); + if (_appwidget_count <= 0) + break; Timer::dispatchTimers(); // fire pending events } } -- 2.45.2