diff options
| author | Christian Ehrlicher <[email protected]> | 2008-03-28 15:52:41 +0000 |
|---|---|---|
| committer | Christian Ehrlicher <[email protected]> | 2008-03-28 15:52:41 +0000 |
| commit | 2fdeb4f5bbbbb10ed98d43616740a52ed2fc14f7 (patch) | |
| tree | 5ca0c2d983bd9d1e79ea9688e73659419caaf11c /src | |
| parent | f40e6db807380b51a7b8a87d50dd6032f9a2ff55 (diff) | |
warnings-- / fix for fileSize > 2GB
svn path=/trunk/KDE/kdebase/apps/; revision=791169
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinmodel.cpp b/src/dolphinmodel.cpp index eab1204bf..9108d2c46 100644 --- a/src/dolphinmodel.cpp +++ b/src/dolphinmodel.cpp @@ -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) { |
