mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 10:50:27 -04:00
19 lines
356 B
C++
19 lines
356 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();
|
|
}
|