mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue