Commit 08bafc3b authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Services Runner] Fix mimeDataForMatch

Regression introduced in 6e660cf9 since it's now a URL with a scheme, e.g. "applications".
Service actions cannot be dragged out but that wasn't the case before either I believe.

Differential Revision:
parent 6d25115e
......@@ -477,7 +477,14 @@ void ServiceRunner::run(const Plasma::RunnerContext &context, const Plasma::Quer
QMimeData * ServiceRunner::mimeDataForMatch(const Plasma::QueryMatch &match)
KService::Ptr service = KService::serviceByStorageId(;
const QUrl dataUrl =;
const QString actionName = QUrlQuery(dataUrl).queryItemValue(QStringLiteral("action"));
if (!actionName.isEmpty()) {
return nullptr;
KService::Ptr service = KService::serviceByStorageId(dataUrl.path());
if (!service) {
return nullptr;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment