diff options
Diffstat (limited to 'gtk-gui.c')
-rw-r--r-- | gtk-gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -315,7 +315,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(); @@ -1840,7 +1840,7 @@ void MainWindow::on_actionClose_triggered() mark_divelist_changed(FALSE); /* clear the selection and the statistics */ - selected_dive = 0; + selected_dive = -1; process_selected_dives(); clear_stats_widgets(); clear_events(); |