Adapt identical behaviour to native address book. See commit 47e0437b8b
authorMichael Rasmussen <mir@datanom.net>
Wed, 28 Mar 2018 11:06:26 +0000 (13:06 +0200)
committerMichael Rasmussen <mir@datanom.net>
Wed, 28 Mar 2018 11:06:26 +0000 (13:06 +0200)
Signed-off-by: Michael Rasmussen <mir@datanom.net>
src/addressadd.c

index 4430baf..3370ca7 100644 (file)
@@ -467,6 +467,9 @@ static void addressadd_load_data() {
                                ADDRADD_COL_PTR, fi,
                                -1);
        }
+
+       if (gtk_tree_model_get_iter_first(model, &iter))
+                gtk_tree_selection_select_iter(sel, &iter);
 }
 #endif