mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
18 lines
373 B
C++
18 lines
373 B
C++
#include "current_comic_view_helper.h"
|
|
|
|
#include "comic_db.h"
|
|
|
|
ComicDB currentComicFromModel(ComicModel *model, bool &found) {
|
|
auto comics = model->getAllComics();
|
|
|
|
foreach (auto comic, comics) {
|
|
if (comic.info.read == false) {
|
|
found = true;
|
|
return comic;
|
|
}
|
|
}
|
|
|
|
found = false;
|
|
return ComicDB();
|
|
}
|