diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-19 22:04:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-19 22:05:44 +0200 |
commit | b1bf518749677b9aa8267490ea46d685e6458d5e (patch) | |
tree | 1573853292688782e5822d854918e38f65ea569c /opentrack | |
parent | 22d32ac0549d6301598cde722fdec0d65589a744 (diff) |
opentrack: don't delay dialog dtor
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/main-window.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp index fb6d89c2..4f6972f4 100644 --- a/opentrack/main-window.cpp +++ b/opentrack/main-window.cpp @@ -581,7 +581,7 @@ void main_window::show_tracker_settings() pTrackerDialog->register_tracker(work->libs.pTracker.get()); if (pTrackerDialog) QObject::connect(pTrackerDialog.get(), &ITrackerDialog::closing, - this, [this] { QTimer::singleShot(0, [this] { pTrackerDialog = nullptr; }); }); + this, [this] { pTrackerDialog = nullptr; }); } void main_window::show_proto_settings() @@ -590,7 +590,7 @@ void main_window::show_proto_settings() pProtocolDialog->register_protocol(work->libs.pProtocol.get()); if (pProtocolDialog) QObject::connect(pProtocolDialog.get(), &IProtocolDialog::closing, - this, [this] { QTimer::singleShot(0, [this] { pProtocolDialog = nullptr; }); }); + this, [this] { pProtocolDialog = nullptr; }); } void main_window::show_filter_settings() @@ -599,7 +599,7 @@ void main_window::show_filter_settings() pFilterDialog->register_filter(work->libs.pFilter.get()); if (pFilterDialog) QObject::connect(pFilterDialog.get(), &IFilterDialog::closing, - this, [this] { QTimer::singleShot(0, [this] { pFilterDialog = nullptr; }); }); + this, [this] { pFilterDialog = nullptr; }); } void main_window::show_options_dialog() |