summaryrefslogtreecommitdiffhomepage
path: root/variant/default/main-window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'variant/default/main-window.cpp')
-rw-r--r--variant/default/main-window.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/variant/default/main-window.cpp b/variant/default/main-window.cpp
index 7b2456e8..11d3eb97 100644
--- a/variant/default/main-window.cpp
+++ b/variant/default/main-window.cpp
@@ -339,9 +339,15 @@ main_window::~main_window()
if (work)
{
stop_tracker_();
- QEventLoop ev;
- ev.processEvents();
- portable::sleep(2000);
+
+ constexpr int inc = 100, max = 2000;
+
+ for (int k = 0; k < max; k += inc)
+ {
+ QEventLoop ev;
+ ev.processEvents();
+ portable::sleep(inc);
+ }
}
exit();