diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-16 15:42:20 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-16 15:42:20 -0300 |
commit | 30297ebd4bbe9d3048e7c4401b3b4b22c24305e0 (patch) | |
tree | b34cba0f93ce51829c714020a4363b3076bdd6ed /gtk-gui.c | |
parent | a55a2e5d88c2e822f64e36b96910632b37ba8d6d (diff) | |
download | subsurface-30297ebd4bbe9d3048e7c4401b3b4b22c24305e0.tar.gz |
Correctly set the unselected dive.
The selected dive was being set to zero when the program
started, but zero is actually the first dive. There
were workarounds on the gtk code for that probably
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
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(); |