diff --git a/kcms/baloo/kcm.h b/kcms/baloo/kcm.h --- a/kcms/baloo/kcm.h +++ b/kcms/baloo/kcm.h @@ -48,13 +48,6 @@ void save() override; private: - /** - * @brief Check if all mount points are in the excluded from indexing list. - * - * @return True if all mount points are excluded. False otherwise. - */ - bool allMountPointsExcluded(); - BalooSettings *m_settings; FilteredFolderModel *m_filteredFolderModel; bool m_previouslyEnabled; diff --git a/kcms/baloo/kcm.cpp b/kcms/baloo/kcm.cpp --- a/kcms/baloo/kcm.cpp +++ b/kcms/baloo/kcm.cpp @@ -33,7 +33,6 @@ #include #include #include -#include #include #include @@ -87,7 +86,7 @@ m_previouslyEnabled = m_settings->indexingEnabled(); // Start Baloo - if (m_settings->indexingEnabled() && !allMountPointsExcluded()) { + if (m_settings->indexingEnabled()) { const QString exe = QStandardPaths::findExecutable(QStringLiteral("baloo_file")); QProcess::startDetached(exe, QStringList()); } @@ -111,16 +110,6 @@ return m_filteredFolderModel; } -bool ServerConfigModule::allMountPointsExcluded() -{ - QStringList mountPoints; - for (const QStorageInfo &si : QStorageInfo::mountedVolumes()) { - mountPoints.append(si.rootPath()); - } - - return m_settings->excludedFolders().toSet() == mountPoints.toSet(); -} - BalooSettings *ServerConfigModule::balooSettings() const { return m_settings;