fix crash in model data function
This commit is contained in:
parent
d6f3bb1008
commit
5d98f8e2f8
1 changed files with 2 additions and 0 deletions
|
@ -220,6 +220,8 @@ QModelIndex MapGroupModel::indexOfMap(QString mapName) {
|
|||
}
|
||||
|
||||
QVariant MapGroupModel::data(const QModelIndex &index, int role) const {
|
||||
if (!index.isValid()) return QVariant();
|
||||
|
||||
int row = index.row();
|
||||
int col = index.column();
|
||||
|
||||
|
|
Loading…
Reference in a new issue