mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
plasma: replace hardcoded signal numbers with definitions in kill runner
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bb5e46748b
commit
9e289a9f9b
1 changed files with 5 additions and 2 deletions
|
@ -156,8 +156,11 @@ QList<QAction*> KillRunner::actionsForMatch(const Plasma::QueryMatch &match)
|
|||
QList<QAction*> 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue