diff --git a/src/tools/balooctl/configcommand.cpp b/src/tools/balooctl/configcommand.cpp --- a/src/tools/balooctl/configcommand.cpp +++ b/src/tools/balooctl/configcommand.cpp @@ -270,13 +270,6 @@ return 1; } - for (const QString& folder : folders) { - if (path.startsWith(folder)) { - out << i18n("Parent folder %1 is already in the list of include folders", folder) << endl; - return 1; - } - } - if (config.excludeFolders().contains(path)) { out << i18n("%1 is in the list of exclude folders", path) << endl; out << "Aborting" << endl; @@ -312,13 +305,6 @@ return 1; } - for (const QString& folder : folders) { - if (path.startsWith(folder)) { - out << i18n("Parent folder %1 is already in the list of exclude folders", folder) << endl; - return 1; - } - } - if (config.includeFolders().contains(path)) { out << i18n("%1 is in the list of exclude folders", path) << endl; out << "Aborting" << endl;