From: Enlightenment S. <no-...@en...> - 2010-10-05 15:19:17
|
Log: [Enjoy] Prevent crash if Prev/Next buttons are clicked when they shouldn't be. Author: acidx Date: 2010-10-05 08:19:11 -0700 (Tue, 05 Oct 2010) New Revision: 53064 Modified: trunk/enjoy/data/themes/default.edc trunk/enjoy/src/bin/page.c Modified: trunk/enjoy/data/themes/default.edc =================================================================== --- trunk/enjoy/data/themes/default.edc 2010-10-05 14:55:47 UTC (rev 53063) +++ trunk/enjoy/data/themes/default.edc 2010-10-05 15:19:11 UTC (rev 53064) @@ -144,7 +144,6 @@ mouse_events: 1; \ description { state: "default" 0.0; \ rel1.to: "button-"_button_name"-normal"; \ - rel1.offset: 0 7; \ rel2.to: "button-"_button_name"-normal"; \ fixed: 1 1; \ visible: 0; \ Modified: trunk/enjoy/src/bin/page.c =================================================================== --- trunk/enjoy/src/bin/page.c 2010-10-05 14:55:47 UTC (rev 53063) +++ trunk/enjoy/src/bin/page.c 2010-10-05 15:19:11 UTC (rev 53064) @@ -579,6 +579,7 @@ Song *song; if (!it) return NULL; it = elm_genlist_item_next_get(it); + if (!it) return NULL; song = elm_genlist_item_data_get(it); page->selected = it; elm_genlist_item_selected_set(it, EINA_TRUE); @@ -604,6 +605,7 @@ Song *song; if (!it) return NULL; it = elm_genlist_item_prev_get(it); + if (!it) return NULL; song = elm_genlist_item_data_get(it); page->selected = it; elm_genlist_item_selected_set(it, EINA_TRUE); |