diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-08 09:43:29 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-08 09:43:29 -0800 |
commit | cb6f04f16c07d121ed46b8e15b436335700e6e22 (patch) | |
tree | 82ff4656ad8ea546e56faaf8169e613b2c90f593 | |
parent | 9d38ceb95d16263a6f2bfeb5ceb450726d617e2d (diff) | |
download | subsurface-cb6f04f16c07d121ed46b8e15b436335700e6e22.tar.gz |
Dive d/l selection UI: Only show checkbox on the first column
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index bb39765ab..c4e19b99c 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -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(); } |