mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Add nullptr check
This commit is contained in:
parent
4bb227aff2
commit
2d741140e6
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user