From: Goun Lee Date: Fri, 25 Nov 2011 07:19:31 +0000 (+0900) Subject: [multibuttonentry]CQ:H0100137536- 'item,selected' signal sends 2 times when button... X-Git-Tag: REL_F_I9500_20111130_1~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2db65633bc2965480fb49e671962834fbd496c18;p=framework%2Fuifw%2Felementary.git [multibuttonentry]CQ:H0100137536- 'item,selected' signal sends 2 times when button is clicked --- diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c index 0949492..b15c821 100644 --- a/src/lib/elc_multibuttonentry.c +++ b/src/lib/elc_multibuttonentry.c @@ -652,14 +652,10 @@ _button_clicked(void *data, Evas_Object *obj, const char *emission __UNUSED__, c Elm_Multibuttonentry_Item *item = NULL; if (!wd || wd->view_state == MULTIBUTTONENTRY_VIEW_CONTRACTED) return; - _change_current_button(data, obj); + _select_button(data, obj); - if (wd->current) - if ((item = eina_list_data_get(wd->current)) != NULL) - { - evas_object_smart_callback_call(data, "item,clicked", item); - _select_button(data, item->button); - } + if ((wd->current) && ((item = eina_list_data_get(wd->current)) != NULL)) + evas_object_smart_callback_call(data, "item,clicked", item); } static void