forked from enlightenment/enlightenment
parent
da5caff466
commit
b51d7c6eda
|
@ -139,7 +139,7 @@ e_import_dialog_show(E_Container *con, const char *dev, const char *path, Ecore_
|
||||||
Evas_Object *ofm;
|
Evas_Object *ofm;
|
||||||
int w, h;
|
int w, h;
|
||||||
const char *fdev, *fpath;
|
const char *fdev, *fpath;
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX], *rpath;
|
||||||
E_Dialog *dia;
|
E_Dialog *dia;
|
||||||
|
|
||||||
id = E_OBJECT_ALLOC(E_Import_Dialog, E_IMPORT_DIALOG_TYPE, _e_import_dialog_del);
|
id = E_OBJECT_ALLOC(E_Import_Dialog, E_IMPORT_DIALOG_TYPE, _e_import_dialog_del);
|
||||||
|
@ -163,10 +163,12 @@ e_import_dialog_show(E_Container *con, const char *dev, const char *path, Ecore_
|
||||||
else
|
else
|
||||||
snprintf(buf, sizeof(buf), "%s", path);
|
snprintf(buf, sizeof(buf), "%s", path);
|
||||||
|
|
||||||
if (!ecore_file_exists(ecore_file_realpath(buf)))
|
rpath = ecore_file_realpath(buf);
|
||||||
|
if (!ecore_file_exists(rpath))
|
||||||
fpath = "/";
|
fpath = "/";
|
||||||
else
|
else
|
||||||
fpath = path ?: e_config->wallpaper_import_last_path;
|
fpath = path ?: e_config->wallpaper_import_last_path;
|
||||||
|
free(rpath);
|
||||||
|
|
||||||
if ((!fdev) && (!fpath))
|
if ((!fdev) && (!fpath))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue