delete the quit process, not UserActinsMenu
BUG: 351643 FIXED-IN: 5.4.1 REVIEW: 124895
This commit is contained in:
parent
abc3c633f3
commit
a97b6e0fd6
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue