Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/conf_wallpaper


Modified Files:
        e_int_config_wallpaper.c 


Log Message:
Check that we have dev & path from the e_fm widget before setting the
e_config values.

===================================================================
RCS file: 
/cvs/e/e17/apps/e/src/modules/conf_wallpaper/e_int_config_wallpaper.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_int_config_wallpaper.c    24 Oct 2007 08:37:48 -0000      1.4
+++ e_int_config_wallpaper.c    24 Oct 2007 18:28:55 -0000      1.5
@@ -153,12 +153,18 @@
    
    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);



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to