No need to refresh view if files are pasted in a directory other than the current.

This commit is contained in:
Stephen Houston 2015-12-02 19:46:17 -06:00
parent f45273dbaa
commit f76804a080
2 changed files with 12 additions and 4 deletions

View File

@ -460,7 +460,7 @@ ephoto_directory_set(Ephoto *ephoto, const char *path, Evas_Object *expanded,
ed->thumbs_only = thumbs_only;
ephoto_title_set(ephoto, NULL);
eina_stringshare_replace(&ephoto->config->directory, path);
eina_stringshare_replace(&ephoto->config->directory, ecore_file_realpath(path));
if (ed->ephoto->job.change_dir)
ecore_job_del(ed->ephoto->job.change_dir);

View File

@ -1007,7 +1007,17 @@ _copy_idler_cb(void *data)
}
tb->file_errors = 0;
tb->thumbs_only = 1;
if (strlen(destination) == strlen(tb->ephoto->config->directory))
{
if (strcmp(destination, tb->ephoto->config->directory))
{
evas_object_del(popup);
evas_object_freeze_events_set(tb->main, EINA_FALSE);
elm_object_focus_set(tb->main, EINA_TRUE);
return EINA_FALSE;
}
}
ephoto_directory_set(tb->ephoto, tb->ephoto->config->directory, NULL,
tb->dirs_only, tb->thumbs_only);
ephoto_title_set(tb->ephoto, tb->ephoto->config->directory);
@ -1790,7 +1800,6 @@ _drop_dropcb(void *data EINA_UNUSED, Evas_Object *obj, Elm_Object_Item *it,
EINA_SAFETY_ON_NULL_RETURN_VAL(it, EINA_TRUE);
const char *path = elm_object_item_data_get(it);
printf("%s\n", path);
Eina_List *files = NULL;
Ephoto_Thumb_Browser *tb = evas_object_data_get(obj, "thumb_browser");
@ -1971,7 +1980,6 @@ _dnd_drag_data_build(Eina_List **items)
e = elm_object_item_data_get(it);
if (e->path)
len += strlen(e->path);
printf("%s\n", e->path);
}
drag_data =