From 63145be20bb873e902f2054da8a902fdaadb7545 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 1 Mar 2001 17:10:50 +0000 Subject: Check the container is not NIL before trying to set thje prop. 2001-03-02 Not Zed * mail-mt.c (set_stop): Check the container is not NIL before trying to set thje prop. svn path=/trunk/; revision=8449 --- mail/ChangeLog | 5 +++++ mail/mail-mt.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 8aadc9dc3c..703f843a28 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-03-02 Not Zed + + * mail-mt.c (set_stop): Check the container is not NIL before + trying to set thje prop. + 2001-03-01 Not Zed * folder-browser.c (folder_browser_search_menu_activated): Fixes diff --git a/mail/mail-mt.c b/mail/mail-mt.c index ee84b6649d..73cec2126d 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -983,6 +983,8 @@ set_stop(int sensitive) control = BONOBO_CONTROL (e_iterator_get (it)); uic = bonobo_control_get_ui_component (control); + if (uic == CORBA_OBJECT_NIL || bonobo_ui_component_get_container(uic) == CORBA_OBJECT_NIL) + continue; bonobo_ui_component_set_prop(uic, "/commands/MailStop", "sensitive", sensitive?"1":"0", NULL); } -- cgit v1.2.3