mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Correctly show the planned dive in the divelist
Previously we would simply show the first dive in the divelist - which worked fine in the default sort by trip setting and assuming that there are no dives from the future in the divelist. With this commit we actually find the correct dive in the divelist and select it instead. If you sort by depth you will see the dive move around in the divelist, but it will stay selected and visible in the profile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c8a9986451
commit
1ea445102e
3 changed files with 33 additions and 29 deletions
|
|
@ -504,9 +504,9 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep)
|
|||
record_dive(dive);
|
||||
stopidx--;
|
||||
}
|
||||
/* now make the dive visible as last dive of the dive list */
|
||||
/* now make the dive visible in the dive list */
|
||||
report_dives(FALSE, FALSE);
|
||||
select_last_dive();
|
||||
show_and_select_dive(dive);
|
||||
free(stoplevels);
|
||||
free(gaschanges);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue