forked from enlightenment/efl
elm diskselector: Fixed wrong icon duplication. Do not duplicate icon if icon is NULL.
This fixes following error message in diskselector. ERR<30865>: elm_icon.c:761 elm_icon_add() safety check failed: parent == NULL SVN revision: 75847
This commit is contained in:
parent
daaf5a95bc
commit
b66480b650
|
@ -961,6 +961,8 @@ _icon_duplicate(Evas_Object *icon)
|
|||
const char *file;
|
||||
const char *group;
|
||||
|
||||
if (!icon) return NULL;
|
||||
|
||||
elm_image_file_get(icon, &file, &group);
|
||||
ic = elm_icon_add(icon);
|
||||
elm_image_file_set(ic, file, group);
|
||||
|
|
Loading…
Reference in New Issue