aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-02-22 08:44:47 +0800
committerHans Petter <hansp@src.gnome.org>2003-02-22 08:44:47 +0800
commit81a5255f6dc6b64bd9befa6c83bafa4a285f72f5 (patch)
tree6843a3ffdac6da4b96761e13ae01eef86134d234 /mail/mail-config.c
parent2dd7b84edba6021442f9fe1c1fa5b8c3bb39fc26 (diff)
downloadgsoc2013-evolution-81a5255f6dc6b64bd9befa6c83bafa4a285f72f5.tar.gz
gsoc2013-evolution-81a5255f6dc6b64bd9befa6c83bafa4a285f72f5.tar.zst
gsoc2013-evolution-81a5255f6dc6b64bd9befa6c83bafa4a285f72f5.zip
Don't try to get a FontPrefs control.
2003-02-21 Hans Petter Jansson <hpj@ximian.com> * component-factory.c (factory): Don't try to get a FontPrefs control. * mail-config-factory.c (mail_config_control_factory_cb): Just return NULL if a FontPrefs control was requested. * mail-config.c (mail_config_get_default_account): If no accounts are defined, don't try to set the default account. svn path=/trunk/; revision=19996
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 02a72ea672..acb044449c 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -627,7 +627,9 @@ mail_config_get_default_account (void)
the default */
e_iterator_reset (iter);
account = (EAccount *) e_iterator_get (iter);
- gconf_client_set_string (config->gconf, "/apps/evolution/mail/default_account", account->uid, NULL);
+ if (account)
+ gconf_client_set_string (config->gconf, "/apps/evolution/mail/default_account",
+ account->uid, NULL);
g_object_unref (iter);
return account;