summaryrefslogtreecommitdiffstats
path: root/info.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 /info.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 'info.c')
-rw-r--r--info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/info.c b/info.c
index 687f83db1..f6905dcd1 100644
--- a/info.c
+++ b/info.c
@@ -143,6 +143,7 @@ void show_dive_info(struct dive *dive)
SET_TEXT_VALUE(suit);
gtk_entry_set_text(rating, star_strings[0]);
gtk_text_buffer_set_text(gtk_text_view_get_buffer(notes), "", -1);
+ show_dive_equipment(NULL, W_IDX_PRIMARY);
return;
}