mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kinit: deal with TODO related to multiple files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f278eea50f
commit
ccb945dbce
1 changed files with 9 additions and 4 deletions
|
@ -330,11 +330,16 @@ bool KLauncherAdaptor::start_service_by_storage_id(const QString &serviceName,
|
||||||
removeTemp(temp, urls);
|
removeTemp(temp, urls);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// TODO: start one service for each
|
|
||||||
if (urls.size() > 1 && !kservice->allowMultipleFiles()) {
|
if (urls.size() > 1 && !kservice->allowMultipleFiles()) {
|
||||||
kError() << "service does not support multiple files" << serviceName;
|
kWarning() << "service does not support multiple files" << serviceName;
|
||||||
showError(i18n("Service does not support multiple files: %1", serviceName), window);
|
bool result = true;
|
||||||
return false;
|
foreach (const QString &url, urls) {
|
||||||
|
if (!start_service_by_storage_id(serviceName, QStringList() << url, envs, window, temp)) {
|
||||||
|
// if one fails then it is not exactly a success
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
// TODO: for applications which do not support URLs - download
|
// TODO: for applications which do not support URLs - download
|
||||||
QStringList programandargs = KRun::processDesktopExec(*kservice, urls);
|
QStringList programandargs = KRun::processDesktopExec(*kservice, urls);
|
||||||
|
|
Loading…
Add table
Reference in a new issue