From 92735b41ff62f11bf9f6f69f8dc9bc6cba7611c7 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 22 Feb 2002 02:30:47 +0000 Subject: Return NULL if there is no component ID for the current view. * e-shell-user-creatable-items-handler.c (get_default_action_for_view): Return NULL if there is no component ID for the current view. svn path=/trunk/; revision=15792 --- shell/ChangeLog | 6 ++++++ shell/e-shell-user-creatable-items-handler.c | 2 ++ 2 files changed, 8 insertions(+) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 500a31dea3..42bc370b7c 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2002-02-21 Ettore Perazzoli + + * e-shell-user-creatable-items-handler.c + (get_default_action_for_view): Return NULL if there is no + component ID for the current view. + 2002-02-21 Ettore Perazzoli * e-shell-user-creatable-items-handler.c (ensure_menu_items): Set diff --git a/shell/e-shell-user-creatable-items-handler.c b/shell/e-shell-user-creatable-items-handler.c index 8ce99341ec..1aa57ebcef 100644 --- a/shell/e-shell-user-creatable-items-handler.c +++ b/shell/e-shell-user-creatable-items-handler.c @@ -280,6 +280,8 @@ get_default_action_for_view (EShellUserCreatableItemsHandler *handler, little more complex. Also, this is a pretty brutal and ugly hack. */ view_component_id = e_shell_view_get_current_component_id (shell_view); + if (view_component_id == NULL) + return NULL; for (p = priv->components, component_num = 0; p != NULL; p = p->next, component_num ++) { const Component *component; -- cgit v1.2.3