Fix GPUCommandList crash on startup

This commit is contained in:
Yuri Kunde Schlesner 2014-08-23 14:38:40 -03:00
parent 0ffc966e42
commit 6db34c47db

View File

@ -24,7 +24,11 @@ QModelIndex GPUCommandListModel::index(int row, int column, const QModelIndex& p
item = (TreeItem*)parent.internalPointer();
}
if (row < item->children.size()) {
return createIndex(row, column, item->children[row]);
} else {
return QModelIndex();
}
}
QModelIndex GPUCommandListModel::parent(const QModelIndex& child) const