diff options
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index e78270ab0..c0c8e8b1c 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -602,10 +602,10 @@ bool DiveImportedModel::setData(const QModelIndex &index, const QVariant &value, return true; } -void DiveImportedModel::changeSelected(QModelIndex index) +void DiveImportedModel::changeSelected(QModelIndex clickedIndex) { - checkStates[index.row()] = !checkStates[index.row()]; - dataChanged(index, index, QVector<int>() << Qt::CheckStateRole); + checkStates[clickedIndex.row()] = !checkStates[clickedIndex.row()]; + dataChanged(index(0, clickedIndex.row()), index(0, clickedIndex.row()), QVector<int>() << Qt::CheckStateRole); } void DiveImportedModel::selectAll() |