mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kinit: minor code shrink
This commit is contained in:
parent
cc965d5493
commit
b4ec5b6a3d
1 changed files with 2 additions and 8 deletions
|
@ -780,17 +780,11 @@ KLauncher::start_service(KService::Ptr service, const QStringList &_urls,
|
|||
// For the first file we launch the application in the
|
||||
// usual way. The reported result is based on this
|
||||
// application.
|
||||
QStringList::ConstIterator it = urls.constBegin();
|
||||
for(++it;
|
||||
it != urls.constEnd();
|
||||
++it)
|
||||
{
|
||||
QStringList singleUrl;
|
||||
singleUrl.append(*it);
|
||||
foreach(const QString it, urls) {
|
||||
QByteArray startup_id2 = startup_id;
|
||||
if( !startup_id2.isEmpty() && startup_id2 != "0" )
|
||||
startup_id2 = "0"; // can't use the same startup_id several times // krazy:exclude=doublequote_chars
|
||||
start_service( service, singleUrl, envs, startup_id2, true, false, msg);
|
||||
start_service( service, QStringList(it), envs, startup_id2, true, false, msg);
|
||||
}
|
||||
QString firstURL = *(urls.begin());
|
||||
urls.clear();
|
||||
|
|
Loading…
Add table
Reference in a new issue