fix crash in model data function

This commit is contained in:
garak 2023-02-14 03:11:18 -05:00
parent d6f3bb1008
commit 5d98f8e2f8

View file

@ -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();