summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorSanjeev BA <iamsanjeev@gmail.com>2012-04-17 05:29:34 +0000
committerSanjeev BA <iamsanjeev@gmail.com>2012-04-17 05:29:34 +0000
commitedb1fe033aab3faaafae66db9113bec8bdf190ab (patch)
treed8faacf75bb1d5a989c70008a2541d53f60005b1 /src/lib
parent5da3840bc80d518c0bf5b00feec0d8a5a533f99e (diff)
Diskselector segfault issue fix.
Author : cnook <kimcinoo@gmail.com> SVN revision: 70253
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_diskselector.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index b117e7b98..c241011ff 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -645,10 +645,12 @@ _selected_item_indicate(Elm_Diskselector_Item *it)
645 wd = elm_widget_data_get(WIDGET(it)); 645 wd = elm_widget_data_get(WIDGET(it));
646 646
647 if (!wd) return; 647 if (!wd) return;
648 if (!it->label) return;
648 649
649 EINA_LIST_FOREACH(wd->r_items, l, item) 650 EINA_LIST_FOREACH(wd->r_items, l, item)
650 { 651 {
651 if (!strcmp(item->label, it->label)) edje_object_signal_emit(VIEW(item), "elm,state,selected", "elm"); 652 if (item->label && !strcmp(item->label, it->label))
653 edje_object_signal_emit(VIEW(item), "elm,state,selected", "elm");
652 else 654 else
653 edje_object_signal_emit(VIEW(item), "elm,state,default", "elm"); 655 edje_object_signal_emit(VIEW(item), "elm,state,default", "elm");
654 } 656 }