mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
fix folder size calculation on FUSE and network file systems
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
This commit is contained in:
parent
764861af51
commit
a6d095fa04
|
@ -1085,7 +1085,7 @@ QHash<QByteArray, QVariant> KFileItemModelRolesUpdater::rolesData(const KFileIte
|
||||||
const bool getIsExpandableRole = m_roles.contains("isExpandable");
|
const bool getIsExpandableRole = m_roles.contains("isExpandable");
|
||||||
|
|
||||||
if ((getSizeRole || getIsExpandableRole) && item.isDir()) {
|
if ((getSizeRole || getIsExpandableRole) && item.isDir()) {
|
||||||
if (item.isLocalFile() && !item.isSlow()) {
|
if (item.isLocalFile()) {
|
||||||
// Tell m_directoryContentsCounter that we want to count the items
|
// Tell m_directoryContentsCounter that we want to count the items
|
||||||
// inside the directory. The result will be received in slotDirectoryContentsCountReceived.
|
// inside the directory. The result will be received in slotDirectoryContentsCountReceived.
|
||||||
if (m_scanDirectories) {
|
if (m_scanDirectories) {
|
||||||
|
|
Loading…
Reference in a new issue