From 95fb6110b10e63e93f5dcc0e0c018920b9da583a Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 23 May 2012 02:26:40 +0000 Subject: [PATCH] fix restore of last import path. SVN revision: 71340 --- src/modules/conf_theme/e_int_config_wallpaper_import.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/conf_theme/e_int_config_wallpaper_import.c b/src/modules/conf_theme/e_int_config_wallpaper_import.c index da2ed394e..1caf3637a 100644 --- a/src/modules/conf_theme/e_int_config_wallpaper_import.c +++ b/src/modules/conf_theme/e_int_config_wallpaper_import.c @@ -325,9 +325,13 @@ e_int_config_wallpaper_fsel(E_Config_Dialog *parent) fsel->content_obj = o; fdev = e_config->wallpaper_import_last_dev; - snprintf(buf, sizeof(buf), "%s%s",fdev,e_config->wallpaper_import_last_path); + if (fdev) + snprintf(buf, sizeof(buf), "%s/%s", + fdev, e_config->wallpaper_import_last_path); + else + snprintf(buf, sizeof(buf), "%s", e_config->wallpaper_import_last_path); - if(!ecore_file_exists(ecore_file_realpath(buf))) + if (!ecore_file_exists(ecore_file_realpath(buf))) fpath = "/"; else fpath = e_config->wallpaper_import_last_path; @@ -338,6 +342,7 @@ e_int_config_wallpaper_fsel(E_Config_Dialog *parent) fpath = "/"; } + printf("LAST: [%s] '%s' '%s'\n", buf, fdev, fpath); ofm = e_widget_fsel_add(evas, fdev, fpath, NULL, NULL, NULL, NULL, NULL, NULL, 1); e_widget_fsel_window_object_set(ofm, E_OBJECT(win));