Commit 07dcff19 authored by Nate Graham's avatar Nate Graham
Browse files

[kcms/baloo] Don't allow removing the home path

Baloo doesn't actually support not indexing the home path at all, but
the UI allows it, sort of: you can do it, but it doesn't actually have
any effect, and and the removed entry comes back when you leave and
return to the KCM. So let's remove the possibility of doing it at all
by marking the home path in the model as not deletable.

BUG: 425360
FIXED-IN: 5.22
parent eebb05ed
......@@ -144,7 +144,7 @@ QVariant FilteredFolderModel::data(const QModelIndex &idx, int role) const
case EnableIndex:
return entry.enableIndex;
case Deletable:
return entry.isFromConfig;
return entry.isFromConfig && entry.url != normalizeTrailingSlashes(QDir::homePath());
default:
return {};
}
......
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