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:
Daniel Juyung Seo 2012-08-30 07:54:18 +00:00
parent daaf5a95bc
commit b66480b650
1 changed files with 2 additions and 0 deletions

View File

@ -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);