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:
Dirk Hohndel 2012-10-18 20:45:26 -07:00
parent f4b6e53c4e
commit 0fc3a446e9
3 changed files with 16 additions and 1 deletions

1
info.c
View file

@ -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;
}