From 59ff02631e910a988c77f8d0cdd69166d80f7883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 9 Aug 2022 16:42:18 +0200 Subject: [PATCH] Fix comic number missing from reading lists content provided through the server --- YACReaderLibrary/db_helper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/YACReaderLibrary/db_helper.cpp b/YACReaderLibrary/db_helper.cpp index b5679440..416414ae 100644 --- a/YACReaderLibrary/db_helper.cpp +++ b/YACReaderLibrary/db_helper.cpp @@ -387,7 +387,7 @@ QList DBHelper::getReadingListFullContent(qulonglong libraryId, qulongl if (getFullComicInfoFields) { params = "*"; } else { - params = "c.id,c.parentId,c.fileName,c.path,ci.title,ci.currentPage,ci.numPages,ci.hash,ci.read,ci.coverSizeRatio"; + params = "c.id,c.parentId,c.fileName,c.path,ci.title,ci.currentPage,ci.numPages,ci.hash,ci.read,ci.coverSizeRatio,ci.number"; } selectQuery.prepare("SELECT " + params + " " @@ -427,6 +427,7 @@ QList DBHelper::getReadingListFullContent(qulonglong libraryId, qulongl comic.info.hash = selectQuery.value(7).toString(); comic.info.read = selectQuery.value(8).toBool(); comic.info.coverSizeRatio = selectQuery.value(9).toFloat(); + comic.info.number = selectQuery.value(9).toInt(); } list.append(comic);