Commit 51a92737 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Task Manager] Use KFilePlacesModel::isHidden

Which also takes into account hidden groups.

Differential Revision: https://phabricator.kde.org/D10328
parent db42961a
......@@ -224,7 +224,7 @@ QVariantList Backend::placesActions(const QUrl &launcherUrl, bool showAllPlaces,
for (int i = 0; i < placesModel->rowCount(); ++i) {
QModelIndex idx = placesModel->index(i, 0);
if (idx.data(KFilePlacesModel::HiddenRole).toBool()) {
if (placesModel->isHidden(idx)) {
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment