fix menu crash when trying to show a menu that isn't ready to be shown
authorMike Blumenkrantz <m.blumenkran@samsung.com>
Fri, 21 Jun 2013 09:27:18 +0000 (10:27 +0100)
committerMike Blumenkrantz <m.blumenkran@samsung.com>
Fri, 21 Jun 2013 09:27:18 +0000 (10:27 +0100)
src/bin/e_menu.c

index d14427c..54dd1f0 100644 (file)
@@ -1696,6 +1696,7 @@ _e_menu_realize(E_Menu *m)
 
    if (m->parent_item && m->parent_item->menu)
      m->zone = m->parent_item->menu->zone;
+   if (!m->zone) return; //menu not ready!
    m->evas = e_comp_get(m)->evas;
    m->shape = e_container_shape_add(m->zone->container);
    evas_event_freeze(m->evas);