From b1bf518749677b9aa8267490ea46d685e6458d5e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 19 Oct 2021 22:04:30 +0200 Subject: opentrack: don't delay dialog dtor --- opentrack/main-window.cpp | 6 +++--- 1 file 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() -- cgit v1.2.3