From 1cd33197ccb7e6a0d37e3dcfbebcf66a67db721a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 25 May 2018 19:28:20 +0200 Subject: [PATCH] Set hasBeenOpened as true if currentPage > 1 I have seen comics opened with hasBeenOpened to false. --- YACReaderLibrary/db_helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YACReaderLibrary/db_helper.cpp b/YACReaderLibrary/db_helper.cpp index fc262d12..e53f9b30 100644 --- a/YACReaderLibrary/db_helper.cpp +++ b/YACReaderLibrary/db_helper.cpp @@ -601,7 +601,7 @@ void DBHelper::update(ComicInfo * comicInfo, QSqlDatabase & db) updateComicInfo.bindValue(":id", comicInfo->id); updateComicInfo.bindValue(":edited", comicInfo->edited?1:0); - updateComicInfo.bindValue(":hasBeenOpened", comicInfo->hasBeenOpened?1:0); + updateComicInfo.bindValue(":hasBeenOpened", comicInfo->hasBeenOpened?1:0 || comicInfo->currentPage > 1); updateComicInfo.bindValue(":currentPage", comicInfo->currentPage); updateComicInfo.bindValue(":bookmark1", comicInfo->bookmark1); updateComicInfo.bindValue(":bookmark2", comicInfo->bookmark2);