aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-config.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2005-02-03 15:06:10 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2005-02-03 15:06:10 +0800
commit9e0c55571c469803870d5265e8a300e691114123 (patch)
treeb40046efe900a6635b1d533aa99d877ccd3aedad /addressbook/gui/component/addressbook-config.c
parent27d2d424c57ad018c536442770bad7bed0e2558a (diff)
downloadgsoc2013-evolution-9e0c55571c469803870d5265e8a300e691114123.tar
gsoc2013-evolution-9e0c55571c469803870d5265e8a300e691114123.tar.gz
gsoc2013-evolution-9e0c55571c469803870d5265e8a300e691114123.tar.bz2
gsoc2013-evolution-9e0c55571c469803870d5265e8a300e691114123.tar.lz
gsoc2013-evolution-9e0c55571c469803870d5265e8a300e691114123.tar.xz
gsoc2013-evolution-9e0c55571c469803870d5265e8a300e691114123.tar.zst
gsoc2013-evolution-9e0c55571c469803870d5265e8a300e691114123.zip
Implement based on the create_groups () function in addressbook-migrate.c.
2004-02-02 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook-component.c (ensure_sources): Implement based on the create_groups () function in addressbook-migrate.c. (addressbook_component_init): Call ensure_sources (). This will create the necessary addressbook source groups if they somehow disappeared from GConf. * gui/component/addressbook-config.c (addressbook_config_edit_source): If we can't get any source groups, just issue a console warning and return NULL. Creating sources without groups is meaningless. Work around for #67411 svn path=/trunk/; revision=28685
Diffstat (limited to 'addressbook/gui/component/addressbook-config.c')
-rw-r--r--addressbook/gui/component/addressbook-config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c
index 7b69fb8c4f..980ae3bc77 100644
--- a/addressbook/gui/component/addressbook-config.c
+++ b/addressbook/gui/component/addressbook-config.c
@@ -1075,6 +1075,12 @@ addressbook_config_edit_source (GtkWidget *parent, ESource *source)
gconf = gconf_client_get_default();
sdialog->source_list = e_source_list_new_for_gconf(gconf, "/apps/evolution/addressbook/sources");
l = e_source_list_peek_groups(sdialog->source_list);
+ if (!l) {
+ g_warning ("Addressbook source groups are missing! Check your GConf setup.");
+ g_free (sdialog);
+ return NULL;
+ }
+
sdialog->menu_source_groups = g_slist_copy(l);
#ifndef HAVE_LDAP
for (;l;l = g_slist_next(l))