We should not forget the launchers that are not currently shown

Summary:
The pinned launchers that are assigned to other activities
will have a -1 as the order. We should not forget them
when saving to the configuration file.

Reviewers: hein, mart

Reviewed By: hein

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D5933
wilder-5.14
Ivan Čukić 9 years ago
parent 4122d3765e
commit e8e2be9083
  1. 5
      libtaskmanager/tasksmodel.cpp

@ -1588,6 +1588,7 @@ void TasksModel::syncLaunchers()
}
QMap<int, QString> sortedShownLaunchers;
QStringList sortedHiddenLaunchers;
foreach(const QString &launcherUrlStr, launcherList()) {
int row = -1;
@ -1607,6 +1608,8 @@ void TasksModel::syncLaunchers()
if (row != -1) {
sortedShownLaunchers.insert(row, launcherUrlStr);
} else {
sortedHiddenLaunchers << launcherUrlStr;
}
}
@ -1632,7 +1635,7 @@ void TasksModel::syncLaunchers()
}
}
setLauncherList(sortedShownLaunchers.values());
setLauncherList(sortedShownLaunchers.values() + sortedHiddenLaunchers);
d->launcherSortingDirty = false;
}

Loading…
Cancel
Save