Fix update from remote client.

current page has to be set before checking for read.
This commit is contained in:
Luis Ángel San Martín 2018-05-21 19:50:28 +02:00
parent 8d60659a4d
commit 0e4ffb15a6

View File

@ -753,11 +753,11 @@ void DBHelper::updateFromRemoteClient(qulonglong libraryId,const ComicInfo & com
{
if(comicInfo.currentPage > 0)
{
comic.info.currentPage = comicInfo.currentPage;
if(comic.info.currentPage == comic.info.numPages)
comic.info.read = true;
comic.info.currentPage = comicInfo.currentPage;
comic.info.hasBeenOpened = true;
}