Commit 3e9cf7a5 authored by Alexander Potashev's avatar Alexander Potashev

kcm baloo: Refuse to add root directory

Summary:
Before this change you could either have or not have the root folder in
the list of excluded folders and get the same behaviour - that was
confusing.

Test Plan: Manually tested by me.

Reviewers: plasma-devel, mart

Reviewed By: mart

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D8326
parent 55036510
......@@ -203,7 +203,8 @@ void FolderSelectionWidget::slotAddButtonClicked()
// We don't care about the root dir
if (url == QLatin1String("/")) {
showMessage(i18n("The root directory is always hidden"));
showMessage(i18n("Not allowed to exclude root folder, please disable File Search if you do not want it"));
return;
}
// Remove any existing folder with that name
......
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