aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-selector.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-selector.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-selector.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-selector.c b/addressbook/gui/widgets/e-addressbook-selector.c
index d33680ac99..3fcf8e8f8b 100644
--- a/addressbook/gui/widgets/e-addressbook-selector.c
+++ b/addressbook/gui/widgets/e-addressbook-selector.c
@@ -168,7 +168,9 @@ addressbook_selector_load_primary_source (ESourceSelector *selector)
if (uid != NULL) {
source = e_source_list_peek_source_by_uid (source_list, uid);
g_free (uid);
- } else {
+ }
+
+ if (source == NULL) {
GSList *groups;
/* Dig up the first source in the source list.