mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
warnings-- / fix for fileSize > 2GB
svn path=/trunk/KDE/kdebase/apps/; revision=791169
This commit is contained in:
parent
f40e6db807
commit
2fdeb4f5bb
1 changed files with 2 additions and 2 deletions
|
@ -190,7 +190,7 @@ QVariant DolphinModel::displayRoleData(const QModelIndex& index) const
|
|||
}
|
||||
|
||||
case KDirModel::Size: {
|
||||
const int fileSize = !item.isNull() ? item.size() : -1;
|
||||
const KIO::filesize_t fileSize = !item.isNull() ? item.size() : ~0U;
|
||||
if (!item.isNull() && item.isDir()) {
|
||||
retString = i18nc("@title:group Size", "Folders");
|
||||
} else if (fileSize < 5242880) {
|
||||
|
@ -343,7 +343,7 @@ QVariant DolphinModel::sortRoleData(const QModelIndex& index) const
|
|||
}
|
||||
|
||||
case KDirModel::Size: {
|
||||
const int fileSize = !item.isNull() ? item.size() : -1;
|
||||
const KIO::filesize_t fileSize = !item.isNull() ? item.size() : ~0U;
|
||||
if (item.isDir()) {
|
||||
retVariant = 0;
|
||||
} else if (fileSize < 5242880) {
|
||||
|
|
Loading…
Reference in a new issue