mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
69da208080
commit
1ba901fed6
3 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue