|
|
|
@ -345,6 +345,9 @@ bool handleRecentDocumentAction(KService::Ptr service, const QString &actionId, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const QStringList argument = _argument.toStringList(); |
|
|
|
const QStringList argument = _argument.toStringList(); |
|
|
|
|
|
|
|
if (argument.isEmpty()) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
const auto resource = argument.at(0); |
|
|
|
const auto resource = argument.at(0); |
|
|
|
const auto mimeType = argument.at(1); |
|
|
|
const auto mimeType = argument.at(1); |
|
|
|
|
|
|
|
|
|
|
|
@ -362,10 +365,6 @@ bool handleRecentDocumentAction(KService::Ptr service, const QString &actionId, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (argument.isEmpty()) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
auto *job = new KIO::ApplicationLauncherJob(service); |
|
|
|
auto *job = new KIO::ApplicationLauncherJob(service); |
|
|
|
job->setUrls({QUrl::fromUserInput(resource)}); |
|
|
|
job->setUrls({QUrl::fromUserInput(resource)}); |
|
|
|
job->setUiDelegate(new KNotificationJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled)); |
|
|
|
job->setUiDelegate(new KNotificationJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled)); |
|
|
|
|