Commit 9bd9813c authored by Marco Martin's avatar Marco Martin
Browse files

keep filtering out the landing page

when highlight changes is checkied, keep filtering out the
landing age form the sidebar

BUG:436012
parent 8b261e7c
......@@ -70,7 +70,11 @@ bool MenuProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_
if (mItem->menu() && mItem->children().isEmpty()) {
return false;
}
return KCategorizedSortFilterProxyModel::filterAcceptsRow(source_row, source_parent);
if (mItem->service()->library() == QLatin1String("kcm_landingpage")) {
return false;
} else {
return KCategorizedSortFilterProxyModel::filterAcceptsRow(source_row, source_parent);
}
}
QModelIndex index = sourceModel()->index(source_row, 0, source_parent);
......
Supports Markdown
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