diff options
-rw-r--r-- | divelist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c index f1af80cea..8967d3612 100644 --- a/divelist.c +++ b/divelist.c @@ -403,6 +403,11 @@ static void fill_dive_list(void) } update_dive_list_units(); + if (gtk_tree_model_get_iter_first(GTK_TREE_MODEL(dive_list.model), &iter)) { + GtkTreeSelection *selection; + selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(dive_list.tree_view)); + gtk_tree_selection_select_iter(selection, &iter); + } } void dive_list_update_dives(void) |