Better use of the stringshare_replace function. Once again gracias k-s.
SVN revision: 50130
This commit is contained in:
parent
0459ed3022
commit
6e63b962bd
|
@ -403,9 +403,7 @@ _ephoto_directory_chosen(void *data, Evas_Object *obj, void *event_info)
|
|||
|
||||
directory = elm_fileselector_selected_get(obj);
|
||||
|
||||
if (directory && directory != current_directory)
|
||||
{
|
||||
if (eina_stringshare_replace(¤t_directory, directory))
|
||||
if ((directory) && (eina_stringshare_replace(¤t_directory, directory)))
|
||||
{
|
||||
l = elm_gengrid_items_get(em->thumb_browser);
|
||||
EINA_LIST_FOREACH(l, iter, item)
|
||||
|
@ -421,7 +419,6 @@ _ephoto_directory_chosen(void *data, Evas_Object *obj, void *event_info)
|
|||
ephoto_populate_thumbnails();
|
||||
elm_label_label_set(dir_label, current_directory);
|
||||
}
|
||||
}
|
||||
evas_object_del(obj);
|
||||
evas_object_del(win);
|
||||
elm_toolbar_item_unselect_all(toolbar);
|
||||
|
|
Loading…
Reference in New Issue