aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index d91b94ba4..c1f711d71 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -584,8 +584,8 @@ void DiveImportedModel::removeUnused() {
beginRemoveRows(QModelIndex(), 0, rowCount()-1);
endRemoveRows();
- for(int i = lastIndex; i >= firstIndex; i-- ){
- if(!checkStates[firstIndex - i]) {
+ for (int i = lastIndex; i >= firstIndex; i-- ) {
+ if (!checkStates[i - firstIndex]) {
delete_single_dive(i);
}
}