aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-02-25 22:18:01 +0800
committerMilan Crha <mcrha@redhat.com>2010-02-25 22:18:01 +0800
commit5b2ab38e34402f27c8e2365cd1e105b5a7a35e86 (patch)
tree14425293d8e7ae43ba5d582fff500b805f41c550 /addressbook/gui
parent1341a56ed1347f0762e9d81f4cfc6197c1656f0b (diff)
downloadgsoc2013-evolution-5b2ab38e34402f27c8e2365cd1e105b5a7a35e86.tar.gz
gsoc2013-evolution-5b2ab38e34402f27c8e2365cd1e105b5a7a35e86.tar.zst
gsoc2013-evolution-5b2ab38e34402f27c8e2365cd1e105b5a7a35e86.zip
Bug #610382 - No addressbook selected on account disable
Diffstat (limited to 'addressbook/gui')
-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.