From a084eaa48408f907a8038fa626cb46f38396b9d6 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 26 Aug 2015 23:58:00 +0100 Subject: [PATCH] If we remove a config action, close any open dialogs for that action BUG: 351748 REVIEW: 124944 --- shell/currentcontainmentactionsmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/currentcontainmentactionsmodel.cpp b/shell/currentcontainmentactionsmodel.cpp index 82671bb6c..5d7c08315 100644 --- a/shell/currentcontainmentactionsmodel.cpp +++ b/shell/currentcontainmentactionsmodel.cpp @@ -211,6 +211,8 @@ void CurrentContainmentActionsModel::showConfiguration(int row) pluginInstance->configurationAccepted(); }); + connect(pluginInstance, &QObject::destroyed, configDlg, &QDialog::reject); + configDlg->show(); }