Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/launchertasksmodel.cpp
| Show First 20 Lines • Show All 443 Lines • ▼ Show 20 Line(s) | 380 | for (const auto& serializedLauncher: serializedLaunchers) { | |||
|---|---|---|---|---|---|
| 444 | 444 | | |||
| 445 | } else { | 445 | } else { | ||
| 446 | // We are not on all activities, append the new ones | 446 | // We are not on all activities, append the new ones | ||
| 447 | newActivitiesForLauncher[url] += activities; | 447 | newActivitiesForLauncher[url] += activities; | ||
| 448 | 448 | | |||
| 449 | } | 449 | } | ||
| 450 | } | 450 | } | ||
| 451 | 451 | | |||
| 452 | if (newActivitiesForLauncher != d->activitiesForLauncher) { | 452 | if (newLaunchersOrder != d->launchersOrder | ||
| 453 | || newActivitiesForLauncher != d->activitiesForLauncher) { | ||||
broulik: Superfluous parenthesis, doesn't compile. | |||||
| 453 | // Common case optimization: If the list changed but its size | 454 | // Common case optimization: If the list changed but its size | ||
| 454 | // did not (e.g. due to reordering by a user of this model), | 455 | // did not (e.g. due to reordering by a user of this model), | ||
| 455 | // just clear the caches and announce new data instead of | 456 | // just clear the caches and announce new data instead of | ||
| 456 | // resetting. | 457 | // resetting. | ||
| 457 | if (newLaunchersOrder.count() == d->launchersOrder.count()) { | 458 | if (newLaunchersOrder.count() == d->launchersOrder.count()) { | ||
| 458 | d->appDataCache.clear(); | 459 | d->appDataCache.clear(); | ||
| 459 | 460 | | |||
| 460 | std::swap(newLaunchersOrder, d->launchersOrder); | 461 | std::swap(newLaunchersOrder, d->launchersOrder); | ||
| ▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines | |||||
Superfluous parenthesis, doesn't compile.