aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp6
-rw-r--r--qt-ui/downloadfromdivecomputer.h2
2 files changed, 4 insertions, 4 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()
diff --git a/qt-ui/downloadfromdivecomputer.h b/qt-ui/downloadfromdivecomputer.h
index c010fa0fd..efec64f80 100644
--- a/qt-ui/downloadfromdivecomputer.h
+++ b/qt-ui/downloadfromdivecomputer.h
@@ -41,7 +41,7 @@ public:
public
slots:
- void changeSelected(QModelIndex index);
+ void changeSelected(QModelIndex clickedIndex);
void selectAll();
void selectNone();