Changeset View
Changeset View
Standalone View
Standalone View
app/plasma/dataengine/kdevelopsessionsservice.cpp
Show All 36 Lines | 36 | SessionJob::SessionJob(KDevelopSessionsService *service, const QString &operation, const QMap<QString, QVariant> ¶meters) | |||
---|---|---|---|---|---|
37 | : Plasma::ServiceJob(service->destination(), operation, parameters, service) | 37 | : Plasma::ServiceJob(service->destination(), operation, parameters, service) | ||
38 | { | 38 | { | ||
39 | } | 39 | } | ||
40 | 40 | | |||
41 | void SessionJob::start() | 41 | void SessionJob::start() | ||
42 | { | 42 | { | ||
43 | if (operationName() == QLatin1String("open")) | 43 | if (operationName() == QLatin1String("open")) | ||
44 | { | 44 | { | ||
45 | QStringList args; | 45 | const QStringList args{ | ||
46 | args << QStringLiteral("--open-session") << destination(); | 46 | QStringLiteral("--open-session"), | ||
47 | destination(), | ||||
48 | }; | ||||
47 | KToolInvocation::kdeinitExec(QStringLiteral("kdevelop"), args); | 49 | KToolInvocation::kdeinitExec(QStringLiteral("kdevelop"), args); | ||
48 | 50 | | |||
49 | setResult(true); | 51 | setResult(true); | ||
50 | } | 52 | } | ||
51 | } | 53 | } | ||
52 | 54 | |