mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Set hasBeenOpened as true if currentPage > 1
I have seen comics opened with hasBeenOpened to false.
This commit is contained in:
parent
d909598732
commit
1cd33197cc
@ -601,7 +601,7 @@ void DBHelper::update(ComicInfo * comicInfo, QSqlDatabase & db)
|
|||||||
updateComicInfo.bindValue(":id", comicInfo->id);
|
updateComicInfo.bindValue(":id", comicInfo->id);
|
||||||
updateComicInfo.bindValue(":edited", comicInfo->edited?1:0);
|
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(":currentPage", comicInfo->currentPage);
|
||||||
updateComicInfo.bindValue(":bookmark1", comicInfo->bookmark1);
|
updateComicInfo.bindValue(":bookmark1", comicInfo->bookmark1);
|
||||||
updateComicInfo.bindValue(":bookmark2", comicInfo->bookmark2);
|
updateComicInfo.bindValue(":bookmark2", comicInfo->bookmark2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user