From 0e4ffb15a672e35148bf956bcf301132a1313c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 21 May 2018 19:50:28 +0200 Subject: [PATCH] Fix update from remote client. current page has to be set before checking for read. --- YACReaderLibrary/db_helper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/db_helper.cpp b/YACReaderLibrary/db_helper.cpp index 341d48c8..081a51f0 100644 --- a/YACReaderLibrary/db_helper.cpp +++ b/YACReaderLibrary/db_helper.cpp @@ -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; }