Fix wrong path->URL conversion.

This commit is contained in:
David Faure 2015-11-28 23:44:47 +01:00
parent 34aaff4124
commit 35b35d0c5f
2 changed files with 8 additions and 1 deletions

View 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;

View 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);