From 86946f8f29fe96644f836b4675ab6653d177ae99 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Mon, 18 Nov 2002 17:05:59 +0000 Subject: applied spell_crash_fix.patch svn path=/trunk/; revision=18829 --- mail/ChangeLog | 5 +++++ mail/mail-composer-prefs.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index d7ad00e5d2..e6ffb0c42c 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2002-11-18 Radek Doulik + + * mail-composer-prefs.c (spell_setup_check_options): check + exception state and take care when exception raised + 2002-11-18 Jeffrey Stedfast * mail-accounts.c (mail_accounts_load): Specify the default diff --git a/mail/mail-composer-prefs.c b/mail/mail-composer-prefs.c index d68277e92a..ba65f31a54 100644 --- a/mail/mail-composer-prefs.c +++ b/mail/mail-composer-prefs.c @@ -746,8 +746,13 @@ spell_setup_check_options (MailComposerPrefs *prefs) CORBA_exception_init (&ev); prefs->language_seq = GNOME_Spell_Dictionary_getLanguages (dict, &ev); + if (ev._major != CORBA_NO_EXCEPTION) + prefs->language_seq = NULL; CORBA_exception_free (&ev); + if (prefs->language_seq == NULL) + return FALSE; + gconf_client_add_dir (prefs->gconf, GNOME_SPELL_GCONF_DIR, GCONF_CLIENT_PRELOAD_NONE, NULL); spell_setup (prefs); -- cgit