From 1ba901fed670ecf55e44b0d8aafb78ede53c9105 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 16 May 2013 09:09:06 -0700 Subject: Initialize / reset selected_dive to -1 The value of 0 that we used is actually a valid value and could cause confusion. Suggested-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- gtk-gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk-gui.c') diff --git a/gtk-gui.c b/gtk-gui.c index 2797b8fa6..b8d749858 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -268,7 +268,7 @@ static void file_close(GtkWidget *w, gpointer data) mark_divelist_changed(FALSE); /* clear the selection and the statistics */ - selected_dive = 0; + selected_dive = -1; process_selected_dives(); clear_stats_widgets(); clear_events(); -- cgit v1.2.3-70-g09d2