]> cloud.milkyroute.net Git - dolphin.git/commitdiff
fix folder size calculation on FUSE and network file systems
authorIlia Kats <ilia-kats@gmx.net>
Tue, 12 Jan 2021 18:24:31 +0000 (19:24 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 16 Jan 2021 18:20:11 +0000 (19:20 +0100)
KFileItem::isSlow uses hardcoded logic that returns true if the
filesystem is Smb or Nfs. However,
KFileSystemType::determineFileSystemTypeImpl on Linux returns Nfs also
if the file system in question is a FUSE file system, which includes
NTFS, sshfs, and others.

BUG: 430778
BUG: 431106

src/kitemviews/kfileitemmodelrolesupdater.cpp

index 075ec888a320483ddbf47188af93be7af66ff4f0..566f228f6b1982f5097971d8ac22da199e062fa4 100644 (file)
@@ -1085,7 +1085,7 @@ QHash<QByteArray, QVariant> KFileItemModelRolesUpdater::rolesData(const KFileIte
     const bool getIsExpandableRole = m_roles.contains("isExpandable");
 
     if ((getSizeRole || getIsExpandableRole) && item.isDir()) {
-        if (item.isLocalFile() && !item.isSlow()) {
+        if (item.isLocalFile()) {
             // Tell m_directoryContentsCounter that we want to count the items
             // inside the directory. The result will be received in slotDirectoryContentsCountReceived.
             if (m_scanDirectories) {