Enlightenment CVS committal Author : englebass Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_int_config_apps_menu.c Log Message: Don't crash when there is no favorite.menu file. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_apps_menu.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- e_int_config_apps_menu.c 6 Apr 2007 09:41:22 -0000 1.4 +++ e_int_config_apps_menu.c 6 Apr 2007 09:50:31 -0000 1.5 @@ -100,7 +100,9 @@ _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) { char buf[4096]; - + + if (!cfdata->menu) return 1; + snprintf(buf, sizeof(buf), "%s/.e/e/applications/menu/favorite.menu", e_user_homedir_get()); efreet_menu_save(cfdata->menu, buf); @@ -166,7 +168,7 @@ Efreet_Menu *menu, *entry; menu = cfdata->menu; - if (!menu->entries) return; + if ((!menu) || (!menu->entries)) return; evas = evas_object_evas_get(cfdata->o_list); evas_event_freeze(evas); @@ -222,6 +224,7 @@ Evas_Coord w; cfdata = data; + if (!cfdata->menu) return; if (e_widget_ilist_selected_get(cfdata->o_apps) < 0) return; evas = evas_object_evas_get(cfdata->o_list); @@ -254,6 +257,7 @@ int num; cfdata = data; + if (!cfdata->menu) return; num = e_widget_ilist_selected_get(cfdata->o_list); if (num < 0) return; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs