From cb6f04f16c07d121ed46b8e15b436335700e6e22 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 8 Jan 2015 09:43:29 -0800 Subject: [PATCH] Dive d/l selection UI: Only show checkbox on the first column Signed-off-by: Dirk Hohndel --- qt-ui/downloadfromdivecomputer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }