mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-09 17:35:37 -05:00
fix crash in model data function
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user