Add nullptr check

This commit is contained in:
Luis Ángel San Martín 2022-01-19 21:12:26 +01:00
parent 4bb227aff2
commit 2d741140e6

View File

@ -142,7 +142,9 @@ void InfoComicsView::setModel(ComicModel *model)
void InfoComicsView::setCurrentIndex(const QModelIndex &index)
{
if (list != nullptr) {
QQmlProperty(list, "currentIndex").write(index.row());
}
setCurrentIndex(index.row());
}