[frameworks/kio] src/filewidgets: kfileplacesmodel: when baloo is disabled don't go anywhere near it

Méven Car <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit fc82796074401e234acc96e57e13d7fb0ede89f3 by Méven Car, on behalf of Harald Sitter.
Committed on 28/07/2026 at 08:27.
Pushed by meven into branch 'master'.

kfileplacesmodel: when baloo is disabled don't go anywhere near it

this notably prevents the tags worker from failing and causing
kmessageboxes appearing everywhere

M  +1    -1    src/filewidgets/kfileplacesmodel.cpp

https://invent.kde.org/frameworks/kio/-/commit/fc82796074401e234acc96e57e13d7fb0ede89f3

diff --git a/src/filewidgets/kfileplacesmodel.cpp b/src/filewidgets/kfileplacesmodel.cpp
index 48e18f49b4..30b974a238 100644
--- a/src/filewidgets/kfileplacesmodel.cpp
+++ b/src/filewidgets/kfileplacesmodel.cpp
@@ -140,7 +140,7 @@ KFilePlacesModelPrivate::KFilePlacesModelPrivate(KFilePlacesModel *qq)
     , fileIndexingEnabled(isFileIndexingEnabled())
     , tagsLister(new KCoreDirLister(q))
 {
-    if (KProtocolInfo::isKnownProtocol(QStringLiteral("tags"))) {
+    if (fileIndexingEnabled && KProtocolInfo::isKnownProtocol(QStringLiteral("tags"))) {
         QObject::connect(tagsLister, &KCoreDirLister::itemsAdded, q, [this](const QUrl &, const KFileItemList &items) {
             if (!supportedSchemes.isEmpty() && !supportedSchemes.contains(QLatin1String("tags"))) {
                 return;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.