mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue