Add command for item object, if different text is 70/172070/1
authorWonnam Jang <wn.jang@samsung.com>
Fri, 29 Dec 2017 05:49:46 +0000 (14:49 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Fri, 9 Mar 2018 10:25:11 +0000 (10:25 +0000)
Change-Id: I4a9765105d234aa6c111518bea23dbe1641b8740
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
(cherry picked from commit f0243f12acb3a11432aeaf4ee593373efcb72129)

src/vc_elm_core.c

index c92e4456ff5d6d65f75958e1c833b57e99b12e32..75499f02eec8c8d61f876da92b9fb31c5f3b781e 100644 (file)
@@ -1750,7 +1750,7 @@ static Eina_Bool _vc_elm_core_set_auto_item_object_command(Elm_Object_Item *obj,
 {
        char *temp = NULL;
        temp = eina_hash_find(item_command_map, &obj);
-       if (NULL != temp) {
+       if (NULL != temp && NULL != _command && !strncmp(temp, _command, strlen(temp))) {
                VC_ELM_LOG_DBG("obj item(%p) already has command(%s)", (void*)obj, temp);
                return EINA_FALSE;
        }