From: SangHyeon Lee Date: Tue, 19 Dec 2017 06:34:55 +0000 (+0900) Subject: genlist: fix tooltip_cb_set wrong exception handling X-Git-Tag: submit/tizen/20171220.062652^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ded886153f7161a66d85d77fefa182e763ebb892;p=platform%2Fupstream%2Felementary.git genlist: fix tooltip_cb_set wrong exception handling Change-Id: I34fa14a91213917fb0842ba36e4bf0efb29ba953 Signed-off-by: SangHyeon Lee --- diff --git a/src/mobile_lib/elm_genlist.c b/src/mobile_lib/elm_genlist.c index c098f1d47..49048d936 100644 --- a/src/mobile_lib/elm_genlist.c +++ b/src/mobile_lib/elm_genlist.c @@ -7722,15 +7722,15 @@ _elm_genlist_item_elm_widget_item_tooltip_content_cb_set(Eo *eo_it, Elm_Gen_Item { ELM_GENLIST_ITEM_CHECK_OR_RETURN(it); - if ((it->tooltip.content_cb == func) && (it->tooltip.data == data)) - return; - - if (it->tooltip.del_cb) - it->tooltip.del_cb((void *)it->tooltip.data, WIDGET(it), it); + if ((it->tooltip.content_cb != func) || (it->tooltip.data != data)) + { + if (it->tooltip.del_cb) + it->tooltip.del_cb((void *)it->tooltip.data, WIDGET(it), it); - it->tooltip.content_cb = func; - it->tooltip.data = data; - it->tooltip.del_cb = del_cb; + it->tooltip.content_cb = func; + it->tooltip.data = data; + it->tooltip.del_cb = del_cb; + } if (VIEW(it)) {