mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Add nullity check
This commit is contained in:
parent
f5eb81dcac
commit
90310a78bb
@ -436,6 +436,10 @@ void GridComicsView::dummyUpdater()
|
|||||||
|
|
||||||
void GridComicsView::setCurrentComicIfNeeded()
|
void GridComicsView::setCurrentComicIfNeeded()
|
||||||
{
|
{
|
||||||
|
if (model == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bool found;
|
bool found;
|
||||||
currentComic = currentComicFromModel(model, found);
|
currentComic = currentComicFromModel(model, found);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user