Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/launchertasksmodel.cpp
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | 161 | if (service) { | |||
---|---|---|---|---|---|
164 | if (!menuId.isEmpty()) { | 164 | if (!menuId.isEmpty()) { | ||
165 | url = QUrl(QStringLiteral("applications:") + menuId); | 165 | url = QUrl(QStringLiteral("applications:") + menuId); | ||
166 | } | 166 | } | ||
167 | } | 167 | } | ||
168 | } | 168 | } | ||
169 | 169 | | |||
170 | // Merge duplicates | 170 | // Merge duplicates | ||
171 | int row = -1; | 171 | int row = -1; | ||
172 | foreach(const QUrl &launcher, launchersOrder) { | 172 | for (const QUrl &launcher : qAsConst(launchersOrder)) { | ||
173 | ++row; | 173 | ++row; | ||
174 | 174 | | |||
175 | if (launcherUrlsMatch(url, launcher, IgnoreQueryItems)) { | 175 | if (launcherUrlsMatch(url, launcher, IgnoreQueryItems)) { | ||
176 | ActivitiesSet newActivities; | 176 | ActivitiesSet newActivities; | ||
177 | 177 | | |||
178 | // Use the key we established equivalence to ('launcher'). | 178 | // Use the key we established equivalence to ('launcher'). | ||
179 | if (!activitiesForLauncher.contains(launcher)) { | 179 | if (!activitiesForLauncher.contains(launcher)) { | ||
180 | // If we don't have the activities assigned to this url | 180 | // If we don't have the activities assigned to this url | ||
▲ Show 20 Lines • Show All 429 Lines • Show Last 20 Lines |