diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/command_divelist.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/commands/command_divelist.cpp b/commands/command_divelist.cpp index 12e1c9309..1d1a90387 100644 --- a/commands/command_divelist.cpp +++ b/commands/command_divelist.cpp @@ -574,10 +574,7 @@ void DeleteDive::redoit() timestamp_t when = divesToAdd.dives[0].dive->when; newCurrent = find_next_visible_dive(when); } - if (newCurrent) - setSelection(std::vector<dive *>{ newCurrent }, newCurrent); - else - setSelection(std::vector<dive *>(), nullptr); + select_single_dive(newCurrent); } |