summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-10-19 05:46:01 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-10-19 05:50:54 +0200
commitefb9167c2eb8b609a8bc86c119b6a77e999681bf (patch)
tree45e2a22197aee5d55ac1031abf7585208726eef3 /opentrack
parent848e414dbf0404b5ad3b97a00a06cd0d7dd8c95c (diff)
opentrack: defer destroying dialogs
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/main-window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp
index 4f6972f4..fb6d89c2 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] { pTrackerDialog = nullptr; });
+ this, [this] { QTimer::singleShot(0, [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] { pProtocolDialog = nullptr; });
+ this, [this] { QTimer::singleShot(0, [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] { pFilterDialog = nullptr; });
+ this, [this] { QTimer::singleShot(0, [this] { pFilterDialog = nullptr; }); });
}
void main_window::show_options_dialog()