diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-21 21:31:49 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-21 21:31:49 +0100 |
commit | fb7293c6386f73d60384fd7dadd9a0817e9148bf (patch) | |
tree | d2150729ae0707cf3ab7e4a1244452c88fe70e20 /gui | |
parent | bc3995be18d2734d2fdb57d42741d6ad1e27b0a5 (diff) |
gui/main-window: try avoid races the other way
Diffstat (limited to 'gui')
-rw-r--r-- | gui/main-window.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index cd35d3cf..39c20455 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -621,7 +621,8 @@ bool mk_dialog(mem<dylib> lib, ptr<t>& d) { using plugin_api::detail::BaseDialog; QObject::connect(static_cast<BaseDialog*>(d.get()), &BaseDialog::closing, - qApp->instance(), [&d]() { d = nullptr; }); + qApp->instance(), [&d]() { d = nullptr; }, + Qt::QueuedConnection); } return just_created; |