Update last time opened when updating reading progress from ios client.

This commit is contained in:
Luis Ángel San Martín 2018-05-21 22:13:07 +02:00
parent 38e3b40e8f
commit e77d613002

View File

@ -759,6 +759,9 @@ void DBHelper::updateFromRemoteClient(qulonglong libraryId,const ComicInfo & com
comic.info.read = true;
comic.info.hasBeenOpened = true;
if (comic.info.lastTimeOpened.toULongLong() < comicInfo.lastTimeOpened.toULongLong())
comic.info.lastTimeOpened = comicInfo.lastTimeOpened;
}
if(comicInfo.rating > 0)
@ -794,6 +797,9 @@ void DBHelper::updateFromRemoteClientWithHash(const ComicInfo & comicInfo)
info.lastTimeOpened = QDateTime::currentSecsSinceEpoch();
info.hasBeenOpened = true;
if (info.lastTimeOpened.toULongLong() < comicInfo.lastTimeOpened.toULongLong())
info.lastTimeOpened = comicInfo.lastTimeOpened;
}
if(comicInfo.rating > 0)