summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-18 20:45:26 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-18 20:45:26 -0700
commit0fc3a446e9a84b8839ef6f1a4c9a0a8446d3b00a (patch)
tree952a14d9e6812a481d8ee4be3eb4341caacb51cc /main.c
parentf4b6e53c4ed04bb56acaed7c06e7a15d92ae8bb1 (diff)
downloadsubsurface-0fc3a446e9a84b8839ef6f1a4c9a0a8446d3b00a.tar.gz
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>
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 880f5f5cc..20f3fb97e 100644
--- a/main.c
+++ b/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);
}