mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't enable equipment notebook buttons if there is no dive
The buttons didn't actually do anything when clicked, but this still was inconsistent behavior. Reported-by: Pierre-Yves Chibon <pingou@pingoured.fr> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f4b6e53c4e
commit
0fc3a446e9
3 changed files with 16 additions and 1 deletions
2
main.c
2
main.c
|
@ -201,8 +201,8 @@ void update_dive(struct dive *new_dive)
|
|||
if (old_dive) {
|
||||
flush_divelist(old_dive);
|
||||
}
|
||||
show_dive_info(new_dive);
|
||||
if (new_dive) {
|
||||
show_dive_info(new_dive);
|
||||
show_dive_equipment(new_dive, W_IDX_PRIMARY);
|
||||
show_dive_stats(new_dive);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue