From 8c884d92b3f61c09bb7ca7adc418685de0cdc0b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 11 Aug 2015 08:36:36 +0200 Subject: [PATCH] Delete the rules process, not the Rulebook Fixes crash when editing window rules. BUG: 351177 REVIEW: 124693 --- rules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.cpp b/rules.cpp index 93856132bf..bae2981c48 100644 --- a/rules.cpp +++ b/rules.cpp @@ -998,7 +998,7 @@ void RuleBook::edit(AbstractClient* c, bool whole_app) p->setArguments(args); p->setProcessEnvironment(kwinApp()->processStartupEnvironment()); p->setProgram(QStringLiteral(KWIN_RULES_DIALOG_BIN)); - connect(p, static_cast(&QProcess::finished), this, &QProcess::deleteLater); + connect(p, static_cast(&QProcess::finished), p, &QProcess::deleteLater); connect(p, static_cast(&QProcess::error), this, [p] (QProcess::ProcessError e) { if (e == QProcess::FailedToStart) {