aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-08 09:43:29 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-08 09:43:29 -0800
commitcb6f04f16c07d121ed46b8e15b436335700e6e22 (patch)
tree82ff4656ad8ea546e56faaf8169e613b2c90f593 /qt-ui/downloadfromdivecomputer.cpp
parent9d38ceb95d16263a6f2bfeb5ceb450726d617e2d (diff)
downloadsubsurface-cb6f04f16c07d121ed46b8e15b436335700e6e22.tar.gz
Dive d/l selection UI: Only show checkbox on the first column
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp3
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();
}