delete thread data after creating new file to prevent messing up the path when creating subsequent new files in other directories

SVN revision: 76678
This commit is contained in:
Mike Blumenkrantz 2012-09-14 15:30:25 +00:00
parent 066fbdcc0e
commit 29b23540ee
1 changed files with 3 additions and 0 deletions

View File

@ -1065,6 +1065,7 @@ e_fm2_path_set(Evas_Object *obj, const char *dev, const char *path)
if (sd->realpath) _e_fm2_client_monitor_del(sd->id, sd->realpath);
sd->listing = EINA_FALSE;
if (sd->new_file.thread) ecore_thread_cancel(sd->new_file.thread);
sd->new_file.thread = NULL;
eina_stringshare_replace(&sd->new_file.filename, NULL);
eina_stringshare_replace(&sd->dev, dev);
eina_stringshare_replace(&sd->path, path);
@ -9224,6 +9225,7 @@ _e_fm2_new_file_end(void *data, Ecore_Thread *eth __UNUSED__)
{
E_Fm2_Smart_Data *sd = data;
sd->new_file.thread = NULL;
ecore_thread_global_data_del("path");
evas_object_unref(sd->obj);
}
@ -9232,6 +9234,7 @@ _e_fm2_new_file_cancel(void *data, Ecore_Thread *eth __UNUSED__)
{
E_Fm2_Smart_Data *sd = data;
sd->new_file.thread = NULL;
ecore_thread_global_data_del("path");
evas_object_unref(sd->obj);
}