summaryrefslogtreecommitdiffstats
path: root/divelist-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'divelist-gtk.c')
-rw-r--r--divelist-gtk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/divelist-gtk.c b/divelist-gtk.c
index e7194d87e..3f96193c5 100644
--- a/divelist-gtk.c
+++ b/divelist-gtk.c
@@ -1319,7 +1319,7 @@ static void delete_selected_dives_cb(GtkWidget *menuitem, GtkTreePath *path)
/* if no dives are selected at this point clear the display widgets */
if (!amount_selected) {
- selected_dive = 0;
+ selected_dive = -1;
process_selected_dives();
clear_stats_widgets();
clear_equipment_widgets();