mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
19 lines
366 B
C++
19 lines
366 B
C++
#include "current_comic_view_helper.h"
|
|
|
|
#include "comic_db.h"
|
|
|
|
ComicDB currentComicFromModel(ComicModel *model, bool &found)
|
|
{
|
|
const auto comics = model->getAllComics();
|
|
|
|
for (const auto &comic : comics) {
|
|
if (comic.info.read == false) {
|
|
found = true;
|
|
return comic;
|
|
}
|
|
}
|
|
|
|
found = false;
|
|
return ComicDB();
|
|
}
|