diff options
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c index 4dcf605bc..7f9095951 100644 --- a/divelist.c +++ b/divelist.c @@ -1934,6 +1934,15 @@ static void delete_selected_dives_cb(GtkWidget *menuitem, GtkTreePath *path) } dive_list_update_dives(); restore_tree_state(); + + /* if no dives are selected at this point clear the display widgets */ + if (!amount_selected) { + selected_dive = 0; + process_selected_dives(); + clear_stats_widgets(); + clear_equipment_widgets(); + show_dive_info(NULL); + } mark_divelist_changed(TRUE); } |