diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-08-04 10:54:28 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-08-04 10:54:28 +0800 |
commit | 4fabc3b420d3123921e5522ce753d56b7fc0ad58 (patch) | |
tree | 1fd501e27e6cb896bd3ae0c7f489bb005dd08c47 /addressbook | |
parent | 239a8d9c93a03d93f40a255ef9d4a9f2aa7c230f (diff) | |
download | gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar.gz gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar.bz2 gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar.lz gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar.xz gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.tar.zst gsoc2013-evolution-4fabc3b420d3123921e5522ce753d56b7fc0ad58.zip |
Check for storage != NULL here. This shouldn't come up unless addressbook
2001-08-03 Christopher James Lahey <clahey@ximian.com>
* gui/component/select-names/e-select-names.c
(e_select_names_hookup_shell_listener): Check for storage != NULL
here. This shouldn't come up unless addressbook has crashed
previously within this session of evolution, but this is just a
bit of insurance.
svn path=/trunk/; revision=11644
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 8 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 29 |
2 files changed, 24 insertions, 13 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 190d8394c6..520aa74990 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,13 @@ 2001-08-03 Christopher James Lahey <clahey@ximian.com> + * gui/component/select-names/e-select-names.c + (e_select_names_hookup_shell_listener): Check for storage != NULL + here. This shouldn't come up unless addressbook has crashed + previously within this session of evolution, but this is just a + bit of insurance. + +2001-08-03 Christopher James Lahey <clahey@ximian.com> + * backend/ebook/e-card.c (e_card_name_match_string): Changed the criteria of whether the first part of each iteration matched or the second one did. Before it got it wrong sometimes and caused diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index 9340bbce48..f1463f0020 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -412,20 +412,23 @@ e_select_names_hookup_shell_listener (ESelectNames *e_select_names) gtk_signal_connect(GTK_OBJECT(e_select_names->listener), "removed_folder", GTK_SIGNAL_FUNC(removed_folder), e_select_names); - GNOME_Evolution_Storage_addListener(storage, listener, &ev); - if (ev._major != CORBA_NO_EXCEPTION) { - g_warning ("e_select_names_init: Exception adding listener to " - "remote GNOME_Evolution_Storage interface.\n"); - CORBA_exception_free (&ev); - return; - } + if (storage != NULL) { + GNOME_Evolution_Storage_addListener(storage, listener, &ev); + + if (ev._major != CORBA_NO_EXCEPTION) { + g_warning ("e_select_names_init: Exception adding listener to " + "remote GNOME_Evolution_Storage interface.\n"); + CORBA_exception_free (&ev); + return; + } - bonobo_object_release_unref(storage, &ev); - if (ev._major != CORBA_NO_EXCEPTION) { - g_warning ("e_select_names_init: Exception unref'ing " - "remote GNOME_Evolution_Storage interface.\n"); - CORBA_exception_free (&ev); - return; + bonobo_object_release_unref(storage, &ev); + if (ev._major != CORBA_NO_EXCEPTION) { + g_warning ("e_select_names_init: Exception unref'ing " + "remote GNOME_Evolution_Storage interface.\n"); + CORBA_exception_free (&ev); + return; + } } CORBA_exception_free(&ev); |