diff --git a/plasma/runners/kill/killrunner.cpp b/plasma/runners/kill/killrunner.cpp index 84cd14e8..cc936acb 100644 --- a/plasma/runners/kill/killrunner.cpp +++ b/plasma/runners/kill/killrunner.cpp @@ -156,8 +156,11 @@ QList KillRunner::actionsForMatch(const Plasma::QueryMatch &match) QList ret; if (!action("SIGTERM")) { - (addAction("SIGTERM", KIcon("application-exit"), i18n("Send SIGTERM")))->setData(15); - (addAction("SIGKILL", KIcon("process-stop"), i18n("Send SIGKILL")))->setData(9); + QAction* action = addAction("SIGTERM", KIcon("application-exit"), i18n("Send SIGTERM")); + action->setData(int(SIGTERM)); + + action = addAction("SIGKILL", KIcon("process-stop"), i18n("Send SIGKILL")); + action->setData(int(SIGKILL)); } ret << action("SIGTERM") << action("SIGKILL"); return ret;