Skip to content

Commit

Permalink
fix crash in model data function
Browse files Browse the repository at this point in the history
  • Loading branch information
garakmon committed Feb 14, 2023
1 parent f3da9f7 commit 7a8b0c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/maplistmodels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 7a8b0c9

Please sign in to comment.