mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +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.
|
||||
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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue