summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
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();
}