summaryrefslogtreecommitdiffstats
path: root/archivebrowsermodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'archivebrowsermodel.cpp')
-rw-r--r--archivebrowsermodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/archivebrowsermodel.cpp b/archivebrowsermodel.cpp
index 4e7dfe3..4174f7e 100644
--- a/archivebrowsermodel.cpp
+++ b/archivebrowsermodel.cpp
@@ -54,7 +54,7 @@ QVariant ArchiveBrowserModel::data(const QModelIndex &index, int role) const {
}
if(role == Qt::ForegroundRole){
if(col == TotalSize){
- qint64 s = item->data(TotalSize).toDouble();
+ qint64 s = item->data(TotalSize).toLongLong();
QColor retval = Qt::green;
if(s > DVDSIZE){
retval = Qt::cyan;
@@ -243,7 +243,7 @@ bool ArchiveBrowserModelProxy::filterAcceptsRow(int sourceRow, const QModelIndex
QModelIndex qualIdx = sourceModel()->index(sourceRow, ArchiveBrowserModel::Quality, sourceParent);
int quality = qualIdx.data().toInt();
QModelIndex sizeIdx = sourceModel()->index(sourceRow, ArchiveBrowserModel::TotalSize, sourceParent);
- qint64 size = sizeIdx.data().toDouble();
+ qint64 size = sizeIdx.data().toLongLong();
if(mQuality > -1 && mSizeFilter){
if(quality <= mQuality && size <= mBytesRemaining){
return true;