diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2020-06-13 02:39:27 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2020-06-13 02:39:27 +0200 |
commit | 59cbdbf34a0348fda0198d4b950ae084245383f6 (patch) | |
tree | 0b3b2c2dcb1842248512ee1f40aec14e6d7d0a2c /opentrack | |
parent | 9a959381f412bbc8e761cdceb9237aa5ba664e48 (diff) |
opentrack: disable QEventLoop on stop tracking
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/main-window.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp index 37beafe3..4f6972f4 100644 --- a/opentrack/main-window.cpp +++ b/opentrack/main-window.cpp @@ -280,14 +280,7 @@ main_window::~main_window() stop_tracker_(); close(); - constexpr int inc = 25, max = 1000; - - for (int k = 0; k < max; k += inc) - { - QEventLoop ev; - ev.processEvents(); - portable::sleep(inc); - } + portable::sleep(1000); } exit(); |