mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-23 05:20:09 +00:00
Fix GPUCommandList crash on startup
This commit is contained in:
parent
0ffc966e42
commit
6db34c47db
@ -24,7 +24,11 @@ QModelIndex GPUCommandListModel::index(int row, int column, const QModelIndex& p
|
|||||||
item = (TreeItem*)parent.internalPointer();
|
item = (TreeItem*)parent.internalPointer();
|
||||||
}
|
}
|
||||||
|
|
||||||
return createIndex(row, column, item->children[row]);
|
if (row < item->children.size()) {
|
||||||
|
return createIndex(row, column, item->children[row]);
|
||||||
|
} else {
|
||||||
|
return QModelIndex();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QModelIndex GPUCommandListModel::parent(const QModelIndex& child) const
|
QModelIndex GPUCommandListModel::parent(const QModelIndex& child) const
|
||||||
|
Loading…
Reference in New Issue
Block a user