genlist: fix tooltip_cb_set wrong exception handling 46/164446/1 accepted/tizen/unified/20171221.071234 submit/tizen/20171220.062652
authorSangHyeon Lee <sh10233.lee@samsung.com>
Tue, 19 Dec 2017 06:34:55 +0000 (15:34 +0900)
committerSangHyeon Lee <sh10233.lee@samsung.com>
Tue, 19 Dec 2017 06:34:59 +0000 (15:34 +0900)
Change-Id: I34fa14a91213917fb0842ba36e4bf0efb29ba953
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
src/mobile_lib/elm_genlist.c

index c098f1d..49048d9 100644 (file)
@@ -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))
      {