More thorough check on menu_post for shelf.

SVN revision: 32874
This commit is contained in:
Christopher Michael 2007-11-25 05:36:54 +00:00
parent 0509cb1a44
commit f815a503eb
1 changed files with 1 additions and 1 deletions

View File

@ -2167,7 +2167,7 @@ _e_gadcon_client_cb_menu_post(void *data, E_Menu *m)
E_Gadcon_Client *gcc;
gcc = data;
if (gcc->gadcon->shelf)
if ((gcc->gadcon) && (gcc->gadcon->shelf))
e_shelf_locked_set(gcc->gadcon->shelf, 0);
if (!gcc->menu) return;
e_object_del(E_OBJECT(gcc->menu));