aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-03-27 16:34:53 +0000
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-03-27 16:34:53 +0000
commita33e4f67abb380cf39e1f4e455c7a0df109865ba (patch)
tree7c99afe6c2eac787c47b6981753d695584262419
parent259a07d696b455f22b13edcae107de67079036f3 (diff)
Revert "Sort application display order"
https://gerrit.automotivelinux.org/gerrit/#/c/20559/ and https://gerrit.automotivelinux.org/gerrit/#/c/20223/ caused the launcher not to display any icons. Reverting until resolved. This reverts commit 259a07d696b455f22b13edcae107de67079036f3. Change-Id: Icdb2accf003cdf9d76a5a69bce3fef0b218093ea
-rw-r--r--launcher/src/applicationmodel.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/launcher/src/applicationmodel.cpp b/launcher/src/applicationmodel.cpp
index 261e43e..258fac6 100644
--- a/launcher/src/applicationmodel.cpp
+++ b/launcher/src/applicationmodel.cpp
@@ -71,13 +71,7 @@ void ApplicationModel::Private::addApp(QString icon, QString name, QString id)
{
_icon = "blank";
}
-
- int pos = 0;
- for (pos = 0; pos < this->data.size(); ++pos) {
- if (QString::compare(this->data.at(pos).name(), name, Qt::CaseInsensitive) > 0)
- break;
- }
- this->data.insert(pos, AppInfo(_icon, name, id));
+ this->data.append(AppInfo(_icon, name, id));
}
void ApplicationModel::Private::removeApp(QString id)