diff --git a/kcmshell/main.cpp b/kcmshell/main.cpp --- a/kcmshell/main.cpp +++ b/kcmshell/main.cpp @@ -275,6 +275,7 @@ moduleArgs << x.split(QRegExp(" +")); KCMShellMultiDialog *dlg = new KCMShellMultiDialog(ftype); + dlg->setAttribute(Qt::WA_DeleteOnClose); if (parser.isSet("caption")) { dlg->setWindowTitle(parser.value("caption")); } else if (modules.count() == 1) {