mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Dive d/l selection UI: fix check if things were checked
Math is hard. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
847289605b
commit
17b9597f3e
1 changed files with 2 additions and 2 deletions
|
@ -584,8 +584,8 @@ void DiveImportedModel::removeUnused() {
|
||||||
beginRemoveRows(QModelIndex(), 0, rowCount()-1);
|
beginRemoveRows(QModelIndex(), 0, rowCount()-1);
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
|
|
||||||
for(int i = lastIndex; i >= firstIndex; i-- ){
|
for (int i = lastIndex; i >= firstIndex; i-- ) {
|
||||||
if(!checkStates[firstIndex - i]) {
|
if (!checkStates[i - firstIndex]) {
|
||||||
delete_single_dive(i);
|
delete_single_dive(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue