mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Show dive number in dive list
Make sure that renumbering the divelist correctly shows up on the display. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
86fdd83e7b
commit
b091916249
2 changed files with 7 additions and 1 deletions
1
main.c
1
main.c
|
@ -203,6 +203,7 @@ void renumber_dives(int nr)
|
|||
for (i = 0; i < dive_table.nr; i++) {
|
||||
struct dive *dive = dive_table.dives[i];
|
||||
dive->number = nr + i;
|
||||
flush_divelist(dive);
|
||||
}
|
||||
mark_divelist_changed(TRUE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue