diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-09-25 04:12:02 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-09-25 04:12:02 +0800 |
commit | edafb41f2a1b8acb546591a7aaad4177811c93c9 (patch) | |
tree | de04881e7ef46a3b4e6b98cf8266847cae21074c /composer/e-msg-composer.c | |
parent | 367d71e40002289395c9e28e969a9ce218b3fd7b (diff) | |
download | gsoc2013-evolution-edafb41f2a1b8acb546591a7aaad4177811c93c9.tar.gz gsoc2013-evolution-edafb41f2a1b8acb546591a7aaad4177811c93c9.tar.zst gsoc2013-evolution-edafb41f2a1b8acb546591a7aaad4177811c93c9.zip |
Same as below.
2003-09-24 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c (get_default_charset): Same as
below.
* e-msg-composer.c (composer_get_default_charset_setting): Handle
empty-string as the charset value gotten from gconf as this can
happen. Partial fix for bug #47638.
svn path=/trunk/; revision=22692
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index e548bc7001..cf4a130d52 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -242,8 +242,14 @@ composer_get_default_charset_setting (void) gconf = gconf_client_get_default (); buf = gconf_client_get_string (gconf, "/apps/evolution/mail/composer/charset", NULL); - if (buf == NULL) + if (buf == NULL || buf[0] == '\0') { + g_free (buf); buf = gconf_client_get_string (gconf, "/apps/evolution/mail/format/charset", NULL); + if (buf && buf[0] == '\0') { + g_free (buf); + buf = NULL; + } + } g_object_unref (gconf); |