diff options
-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; |