This commit is contained in:
parent
a21e541800
commit
89d6235f26
@ -1,48 +0,0 @@
|
|||||||
From: David Faure <faure@kde.org>
|
|
||||||
Date: Sat, 28 Nov 2015 22:44:47 +0000
|
|
||||||
Subject: Fix wrong path->URL conversion.
|
|
||||||
X-Git-Tag: v16.03.80
|
|
||||||
X-Git-Url: http://quickgit.kde.org/?p=dolphin.git&a=commitdiff&h=35b35d0c5f62641a685282d25ea204e7004e09c0
|
|
||||||
---
|
|
||||||
Fix wrong path->URL conversion.
|
|
||||||
---
|
|
||||||
|
|
||||||
|
|
||||||
--- a/src/kitemviews/kfileitemmodelrolesupdater.cpp
|
|
||||||
+++ b/src/kitemviews/kfileitemmodelrolesupdater.cpp
|
|
||||||
@@ -717,7 +717,13 @@
|
|
||||||
// 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 @@
|
|
||||||
#ifdef HAVE_BALOO
|
|
||||||
if (m_balooFileMonitor) {
|
|
||||||
m_balooFileMonitor->addFile(item.localPath());
|
|
||||||
- applyChangedBalooRoles(item.localPath());
|
|
||||||
+ applyChangedBalooRolesForItem(item);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return data;
|
|
||||||
|
|
||||||
--- a/src/kitemviews/kfileitemmodelrolesupdater.h
|
|
||||||
+++ b/src/kitemviews/kfileitemmodelrolesupdater.h
|
|
||||||
@@ -211,6 +211,7 @@
|
|
||||||
void resolveRecentlyChangedItems();
|
|
||||||
|
|
||||||
void applyChangedBalooRoles(const QString& file);
|
|
||||||
+ void applyChangedBalooRolesForItem(const KFileItem& file);
|
|
||||||
|
|
||||||
void slotDirectoryContentsCountReceived(const QString& path, int count);
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user