mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
plasma: replace hard-coded signal number with definition in kill runner
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0bd3c6cf6d
commit
f1072f7767
1 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,6 @@
|
|||
|
||||
#include <QAction>
|
||||
#include <QProcess>
|
||||
|
||||
#include <KDebug>
|
||||
#include <KIcon>
|
||||
#include <KUser>
|
||||
|
@ -29,9 +28,10 @@
|
|||
|
||||
#include "ksysguard/processcore/processes.h"
|
||||
#include "ksysguard/processcore/process.h"
|
||||
|
||||
#include "killrunner_config.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
KillRunner::KillRunner(QObject *parent, const QVariantList& args)
|
||||
: Plasma::AbstractRunner(parent, args),
|
||||
m_processes(0)
|
||||
|
@ -175,7 +175,7 @@ void KillRunner::run(const Plasma::RunnerContext &context, const Plasma::QueryMa
|
|||
if (match.selectedAction() != NULL) {
|
||||
signal = match.selectedAction()->data().toInt();
|
||||
} else {
|
||||
signal = 9; //default: SIGKILL
|
||||
signal = SIGKILL;
|
||||
}
|
||||
|
||||
QStringList args;
|
||||
|
|
Loading…
Add table
Reference in a new issue