fix path setting in import dialog

SVN revision: 83151
This commit is contained in:
Mike Blumenkrantz 2013-01-23 10:35:57 +00:00
parent 3456c9dff2
commit 0183b727d0
3 changed files with 4 additions and 4 deletions

View File

@ -5,6 +5,7 @@
* fixed small leak in e_import_config_dialog_show during failure case
* fixed small leak in e_import_dialog_show during failure case
* fixed small leak in illume2 policy config
* fixed path setting in import dialog
2013-01-22 Mike Blumenkrantz

1
NEWS
View File

@ -116,3 +116,4 @@ Fixes:
* fixed small leak in e_import_config_dialog_show during failure case
* fixed small leak in e_import_dialog_show during failure case
* fixed small leak in illume2 policy config
* fixed path setting in import dialog

View File

@ -165,15 +165,13 @@ e_import_dialog_show(E_Container *con, const char *dev, const char *path, Ecore_
fpath = path ? : e_config->wallpaper_import_last_path;
if (fdev)
snprintf(buf, sizeof(buf), "%s/%s",
fdev, path);
fdev, fpath);
else
snprintf(buf, sizeof(buf), "%s", path);
snprintf(buf, sizeof(buf), "%s", fpath);
rpath = ecore_file_realpath(buf);
if (!ecore_file_exists(rpath))
fpath = "/";
else
fpath = path ? : e_config->wallpaper_import_last_path;
free(rpath);
if ((!fdev) && (!fpath))