mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed DBHelper::getSortedComicsFromParent
This commit is contained in:
parent
98a3bc1684
commit
ef53174255
@ -418,10 +418,10 @@ QList<ComicDB> DBHelper::getSortedComicsFromParent(qulonglong parentId, QSqlData
|
||||
int max = (std::numeric_limits<int>::max)();
|
||||
numberLast = numberCurrent = max; //TODO change by std limit
|
||||
|
||||
if(last.info.number!=NULL)
|
||||
if(!last.info.number.isNull())
|
||||
numberLast = last.info.number.toInt();
|
||||
|
||||
if(currentItem.info.number!=NULL)
|
||||
if(!currentItem.info.number.isNull())
|
||||
numberCurrent = currentItem.info.number.toInt();
|
||||
|
||||
QList<ComicDB>::iterator i;
|
||||
@ -435,7 +435,7 @@ QList<ComicDB> DBHelper::getSortedComicsFromParent(qulonglong parentId, QSqlData
|
||||
i--;
|
||||
numberLast = max;
|
||||
|
||||
if((*i).info.number != NULL)
|
||||
if(!(*i).info.number.isNull())
|
||||
numberLast = (*i).info.number.toInt();
|
||||
}
|
||||
}
|
||||
@ -447,7 +447,7 @@ QList<ComicDB> DBHelper::getSortedComicsFromParent(qulonglong parentId, QSqlData
|
||||
nameLast = (*i).name;
|
||||
numberLast = max;
|
||||
|
||||
if((*i).info.number != NULL)
|
||||
if(!(*i).info.number.isNull())
|
||||
numberLast = (*i).info.number.toInt();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user