fix path setting in import dialog
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 23 Jan 2013 10:35:57 +0000 (10:35 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 23 Jan 2013 10:35:57 +0000 (10:35 +0000)
SVN revision: 83151

ChangeLog
NEWS
src/bin/e_import_dialog.c

index 146e8ef..e2f798b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
         * fixed small leak in e_import_config_dialog_show during failure case
         * fixed small leak in e_import_dialog_show during failure case
         * fixed small leak in illume2 policy config
+        * fixed path setting in import dialog
 
 2013-01-22 Mike Blumenkrantz
 
diff --git a/NEWS b/NEWS
index cb77a52..5f4107e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -116,3 +116,4 @@ Fixes:
     * fixed small leak in e_import_config_dialog_show during failure case
     * fixed small leak in e_import_dialog_show during failure case
     * fixed small leak in illume2 policy config
+    * fixed path setting in import dialog
index ac22551..9b29932 100644 (file)
@@ -165,15 +165,13 @@ e_import_dialog_show(E_Container *con, const char *dev, const char *path, Ecore_
    fpath = path ? : e_config->wallpaper_import_last_path;
    if (fdev)
      snprintf(buf, sizeof(buf), "%s/%s",
-              fdev, path);
+              fdev, fpath);
    else
-     snprintf(buf, sizeof(buf), "%s", path);
+     snprintf(buf, sizeof(buf), "%s", fpath);
 
    rpath = ecore_file_realpath(buf);
    if (!ecore_file_exists(rpath))
      fpath = "/";
-   else
-     fpath = path ? : e_config->wallpaper_import_last_path;
    free(rpath);
 
    if ((!fdev) && (!fpath))