mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Fix missing cover after updating the comics flow
This commit is contained in:
parent
d353bf8014
commit
1280918bfe
@ -384,8 +384,8 @@ void ClassicComicsView::addItemsToFlow(const QModelIndex &parent, int from, int
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
for (int i = from; i <= to; i++) {
|
||||
auto coverPath = model->index(i, 0).data(ComicModel::CoverPathRole).toString();
|
||||
comicFlow->add(coverPath.remove("file:"), i); // TODO: find a better way to get the path, file:+the_path is the way the URL is created for QML
|
||||
auto coverPath = model->index(i, 0).data(ComicModel::CoverPathRole).toUrl().toLocalFile();
|
||||
comicFlow->add(coverPath, i);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user