mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Fix wrong path->URL conversion.
This commit is contained in:
parent
34aaff4124
commit
35b35d0c5f
|
@ -717,7 +717,13 @@ void KFileItemModelRolesUpdater::applyChangedBalooRoles(const QString& itemUrl)
|
||||||
// the corresponding file has been deleted in the meantime.
|
// the corresponding file has been deleted in the meantime.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
applyChangedBalooRolesForItem(item);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void KFileItemModelRolesUpdater::applyChangedBalooRolesForItem(const KFileItem &item)
|
||||||
|
{
|
||||||
|
#ifdef HAVE_BALOO
|
||||||
Baloo::File file(item.localPath());
|
Baloo::File file(item.localPath());
|
||||||
file.load();
|
file.load();
|
||||||
|
|
||||||
|
@ -1089,7 +1095,7 @@ QHash<QByteArray, QVariant> KFileItemModelRolesUpdater::rolesData(const KFileIte
|
||||||
#ifdef HAVE_BALOO
|
#ifdef HAVE_BALOO
|
||||||
if (m_balooFileMonitor) {
|
if (m_balooFileMonitor) {
|
||||||
m_balooFileMonitor->addFile(item.localPath());
|
m_balooFileMonitor->addFile(item.localPath());
|
||||||
applyChangedBalooRoles(item.localPath());
|
applyChangedBalooRolesForItem(item);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return data;
|
return data;
|
||||||
|
|
|
@ -211,6 +211,7 @@ private slots:
|
||||||
void resolveRecentlyChangedItems();
|
void resolveRecentlyChangedItems();
|
||||||
|
|
||||||
void applyChangedBalooRoles(const QString& file);
|
void applyChangedBalooRoles(const QString& file);
|
||||||
|
void applyChangedBalooRolesForItem(const KFileItem& file);
|
||||||
|
|
||||||
void slotDirectoryContentsCountReceived(const QString& path, int count);
|
void slotDirectoryContentsCountReceived(const QString& path, int count);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue