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:
Christopher Michael 2007-10-24 18:28:55 +00:00
parent 48905c36d5
commit acd700aba2
1 changed files with 12 additions and 6 deletions

View File

@ -153,12 +153,18 @@ e_int_config_wallpaper_handler_set(Evas_Object *obj, const char *path, void *dat
if (!path) return;
e_fm2_path_get(obj, &dev, &fpath);
if (e_config->wallpaper_import_last_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_path)
evas_stringshare_del(e_config->wallpaper_import_last_path);
e_config->wallpaper_import_last_path = evas_stringshare_add(fpath);
if (dev)
{
if (e_config->wallpaper_import_last_dev)
evas_stringshare_del(e_config->wallpaper_import_last_dev);
e_config->wallpaper_import_last_dev = evas_stringshare_add(dev);
}
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_int_config_wallpaper_import(NULL);