Dive d/l selection UI: Only show checkbox on the first column
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9d38ceb95d
commit
cb6f04f16c
@ -538,7 +538,8 @@ QVariant DiveImportedModel::data(const QModelIndex& index, int role) const
|
||||
}
|
||||
}
|
||||
if (role == Qt::CheckStateRole) {
|
||||
return checkStates[index.row() + firstIndex] ? Qt::Checked : Qt::Unchecked;
|
||||
if (index.column() == 0)
|
||||
return checkStates[index.row() + firstIndex] ? Qt::Checked : Qt::Unchecked;
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user