Prevent a crash by avoiding calling the populate_folder_context_menu
function when NULL. (Ooops, I forgot this.) svn path=/trunk/; revision=4253
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
2000-07-21 Ettore Perazzoli <ettore@helixcode.com>
|
||||
|
||||
* evolution-shell-component.c
|
||||
(impl_ShellComponent_populate_folder_context_menu): If the pointer
|
||||
to the function to populate the folder context menu is NULL, don't
|
||||
do anything.
|
||||
|
||||
2000-07-21 Ettore Perazzoli <ettore@helixcode.com>
|
||||
|
||||
* e-storage-set-view.c (popup_folder_menu): New. Create a
|
||||
|
@ -280,6 +280,9 @@ impl_ShellComponent_populate_folder_context_menu (PortableServer_Servant servant
|
||||
shell_component = EVOLUTION_SHELL_COMPONENT (bonobo_object);
|
||||
priv = shell_component->priv;
|
||||
|
||||
if (priv->populate_folder_context_menu_fn == NULL)
|
||||
return;
|
||||
|
||||
uih = bonobo_ui_handler_new ();
|
||||
bonobo_ui_handler_set_container (uih, corba_uih);
|
||||
|
||||
|
Reference in New Issue
Block a user