delete the quit process, not UserActinsMenu

BUG: 351643
FIXED-IN: 5.4.1
REVIEW: 124895
This commit is contained in:
Thomas Lübking 2015-08-23 20:56:10 +02:00
parent abc3c633f3
commit a97b6e0fd6

View file

@ -314,7 +314,7 @@ void UserActionsMenu::init()
p->setArguments(args); p->setArguments(args);
p->setProcessEnvironment(kwinApp()->processStartupEnvironment()); p->setProcessEnvironment(kwinApp()->processStartupEnvironment());
p->setProgram(QStringLiteral("kcmshell5")); p->setProgram(QStringLiteral("kcmshell5"));
connect(p, static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), this, &QProcess::deleteLater); connect(p, static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), p, &QProcess::deleteLater);
connect(p, static_cast<void (QProcess::*)(QProcess::ProcessError)>(&QProcess::error), this, connect(p, static_cast<void (QProcess::*)(QProcess::ProcessError)>(&QProcess::error), this,
[p] (QProcess::ProcessError e) { [p] (QProcess::ProcessError e) {
if (e == QProcess::FailedToStart) { if (e == QProcess::FailedToStart) {