From 3e9cf7a5b5037a41d5defd628a0f6cfc216fad86 Mon Sep 17 00:00:00 2001 From: Alexander Potashev Date: Mon, 16 Oct 2017 11:45:24 +0300 Subject: [PATCH] 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 --- kcms/baloo/folderselectionwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kcms/baloo/folderselectionwidget.cpp b/kcms/baloo/folderselectionwidget.cpp index 3d565e64d..9f312226f 100644 --- a/kcms/baloo/folderselectionwidget.cpp +++ b/kcms/baloo/folderselectionwidget.cpp @@ -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 -- GitLab