mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
Only try to set the next comic as read if there is a next comic.
This commit is contained in:
parent
c97bc6ef88
commit
50c9238376
@ -35,10 +35,12 @@ void UpdateComicControllerV2::service(HttpRequest &request, HttpResponse &respon
|
||||
DBHelper::updateProgress(libraryId,info);
|
||||
|
||||
if (data.length() > 1) {
|
||||
QString nextComicId = data.at(1);
|
||||
ComicInfo info;
|
||||
info.id = nextComicId.toULongLong();
|
||||
DBHelper::setComicAsReading(libraryId,info);
|
||||
if (data.at(1).isEmpty() == false) {
|
||||
QString nextComicId = data.at(1);
|
||||
ComicInfo info;
|
||||
info.id = nextComicId.toULongLong();
|
||||
DBHelper::setComicAsReading(libraryId,info);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user