Check that we have dev & path from the e_fm widget before setting the
e_config values. SVN revision: 32156
This commit is contained in:
parent
48905c36d5
commit
acd700aba2
|
@ -153,12 +153,18 @@ e_int_config_wallpaper_handler_set(Evas_Object *obj, const char *path, void *dat
|
||||||
|
|
||||||
if (!path) return;
|
if (!path) return;
|
||||||
e_fm2_path_get(obj, &dev, &fpath);
|
e_fm2_path_get(obj, &dev, &fpath);
|
||||||
if (e_config->wallpaper_import_last_dev)
|
if (dev)
|
||||||
evas_stringshare_del(e_config->wallpaper_import_last_dev);
|
{
|
||||||
e_config->wallpaper_import_last_dev = evas_stringshare_add(dev);
|
if (e_config->wallpaper_import_last_dev)
|
||||||
if (e_config->wallpaper_import_last_path)
|
evas_stringshare_del(e_config->wallpaper_import_last_dev);
|
||||||
evas_stringshare_del(e_config->wallpaper_import_last_path);
|
e_config->wallpaper_import_last_dev = evas_stringshare_add(dev);
|
||||||
e_config->wallpaper_import_last_path = evas_stringshare_add(fpath);
|
}
|
||||||
|
if (fpath)
|
||||||
|
{
|
||||||
|
if (e_config->wallpaper_import_last_path)
|
||||||
|
evas_stringshare_del(e_config->wallpaper_import_last_path);
|
||||||
|
e_config->wallpaper_import_last_path = evas_stringshare_add(fpath);
|
||||||
|
}
|
||||||
e_config_save_queue();
|
e_config_save_queue();
|
||||||
|
|
||||||
e_int_config_wallpaper_import(NULL);
|
e_int_config_wallpaper_import(NULL);
|
||||||
|
|
Loading…
Reference in New Issue