]> 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)
committerIlia Kats <ilia-kats@gmx.net>
Fri, 15 Jan 2021 20:41:24 +0000 (20:41 +0000)
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 3bd6d977dab74fd9d46daf0bb65a7de4cb2dce35..42788d2fe6553b83629820b4451b7a500850f216 100644 (file)
@@ -1083,7 +1083,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) {