diff options
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 935ce550ac..18802fdb07 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2001-11-12 Jon Trowbridge <trow@ximian.com> + + * gui/contact-editor/e-contact-editor.c (categories_clicked): If + our call to e_categories_new returns NULL, put up an error dialog + and return. (Fixed #14780) + 2001-11-09 Chris Toshok <toshok@ximian.com> [ Fixes Ximian bug #14687 ] diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 2983cd8a24..5abc4af8f7 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -27,6 +27,7 @@ #include <gtk/gtkcombo.h> #include <gtk/gtktext.h> #include <libgnomeui/gnome-popup-menu.h> +#include <libgnomeui/gnome-dialog-util.h> #include <libgnomeui/gnome-stock.h> #include <libgnome/gnome-i18n.h> @@ -750,6 +751,13 @@ categories_clicked(GtkWidget *button, EContactEditor *editor) "categories", &categories, NULL); dialog = GNOME_DIALOG(e_categories_new(categories)); + + if (dialog == NULL) { + GtkWidget *uh_oh = gnome_error_dialog (_("Category editor not available.")); + gtk_widget_show (uh_oh); + return; + } + ecml = e_categories_master_list_wombat_new (); gtk_object_set(GTK_OBJECT(dialog), "header", _("This contact belongs to these categories:"), |