]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix wrong path->URL conversion.
authorDavid Faure <faure@kde.org>
Sat, 28 Nov 2015 22:44:47 +0000 (23:44 +0100)
committerDavid Faure <faure@kde.org>
Sat, 28 Nov 2015 22:45:07 +0000 (23:45 +0100)
src/kitemviews/kfileitemmodelrolesupdater.cpp
src/kitemviews/kfileitemmodelrolesupdater.h

index d3d3745fc544adeef95591c6aca50a43f5c92f2e..c4b82f780f13d7486fa741ef26c7b4fad683c170 100644 (file)
@@ -717,7 +717,13 @@ void KFileItemModelRolesUpdater::applyChangedBalooRoles(const QString& itemUrl)
         // the corresponding file has been deleted in the meantime.
         return;
     }
+    applyChangedBalooRolesForItem(item);
+#endif
+}
 
+void KFileItemModelRolesUpdater::applyChangedBalooRolesForItem(const KFileItem &item)
+{
+#ifdef HAVE_BALOO
     Baloo::File file(item.localPath());
     file.load();
 
@@ -1089,7 +1095,7 @@ QHash<QByteArray, QVariant> KFileItemModelRolesUpdater::rolesData(const KFileIte
 #ifdef HAVE_BALOO
     if (m_balooFileMonitor) {
         m_balooFileMonitor->addFile(item.localPath());
-        applyChangedBalooRoles(item.localPath());
+        applyChangedBalooRolesForItem(item);
     }
 #endif
     return data;
index f3d40a6c54ea9f02d2833233a710a84af7d1d770..cd86fce1eeed3de3b26b6c7645c9524ac7db3fb5 100644 (file)
@@ -211,6 +211,7 @@ private slots:
     void resolveRecentlyChangedItems();
 
     void applyChangedBalooRoles(const QString& file);
+    void applyChangedBalooRolesForItem(const KFileItem& file);
 
     void slotDirectoryContentsCountReceived(const QString& path, int count);