mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fix loading some missing fields from database
This commit is contained in:
parent
c9f703b6f7
commit
c93e86af12
@ -1149,6 +1149,11 @@ QList<ComicDB> DBHelper::getSortedComicsFromParent(qulonglong parentId, QSqlData
|
|||||||
|
|
||||||
int comicVineID = record.indexOf("comicVineID");
|
int comicVineID = record.indexOf("comicVineID");
|
||||||
|
|
||||||
|
int lastTimeOpened = record.indexOf("lastTimeOpened");
|
||||||
|
|
||||||
|
int coverSizeRatio = record.indexOf("coverSizeRatio");
|
||||||
|
int originalCoverSize = record.indexOf("originalCoverSize");
|
||||||
|
|
||||||
ComicDB currentItem;
|
ComicDB currentItem;
|
||||||
while (selectQuery.next())
|
while (selectQuery.next())
|
||||||
{
|
{
|
||||||
@ -1209,6 +1214,11 @@ QList<ComicDB> DBHelper::getSortedComicsFromParent(qulonglong parentId, QSqlData
|
|||||||
|
|
||||||
currentItem.info.comicVineID = selectQuery.value(comicVineID);
|
currentItem.info.comicVineID = selectQuery.value(comicVineID);
|
||||||
|
|
||||||
|
currentItem.info.lastTimeOpened = selectQuery.value(lastTimeOpened);
|
||||||
|
|
||||||
|
currentItem.info.coverSizeRatio = selectQuery.value(coverSizeRatio);
|
||||||
|
currentItem.info.originalCoverSize = selectQuery.value(originalCoverSize);
|
||||||
|
|
||||||
currentItem.info.existOnDb = true;
|
currentItem.info.existOnDb = true;
|
||||||
|
|
||||||
list.append(currentItem);
|
list.append(currentItem);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user