Backport and ChangeLog needed?

Daniel Juyung Seo (SeoZ)

On Tue, Jun 26, 2012 at 9:10 AM, Enlightenment SVN
<no-re...@enlightenment.org> wrote:
> Log:
> elementary: I think this needs some fixing. fileselector, select the wrong dir
>
> Author:       yoz
> Date:         2012-06-25 17:10:15 -0700 (Mon, 25 Jun 2012)
> New Revision: 72834
> Trac:         http://trac.enlightenment.org/e/changeset/72834
>
> Modified:
>  trunk/elementary/src/lib/elc_fileselector.c
>
> Modified: trunk/elementary/src/lib/elc_fileselector.c
> ===================================================================
> --- trunk/elementary/src/lib/elc_fileselector.c 2012-06-25 22:43:57 UTC (rev 
> 72833)
> +++ trunk/elementary/src/lib/elc_fileselector.c 2012-06-26 00:10:15 UTC (rev 
> 72834)
> @@ -1181,8 +1181,10 @@
>         const char *name;
>         char *dir, *s;
>
> -        dir = sd->only_folder ? ecore_file_dir_get(sd->path)
> -          : strdup(sd->path);
> +        if (ecore_file_is_dir(sd->path))
> +          dir = strdup(sd->path);
> +        else
> +          dir = ecore_file_dir_get(sd->path);
>         name = elm_object_text_get(sd->filename_entry);
>         if (name)
>           {
> @@ -1196,9 +1198,7 @@
>           }
>         else snprintf(buf, sizeof(buf), "%s", dir);
>
> -        if (sd->only_folder && !ecore_file_is_dir(buf))
> -          eina_stringshare_replace(&sd->selection, ecore_file_dir_get(buf));
> -        else eina_stringshare_replace(&sd->selection, buf);
> +        eina_stringshare_replace(&sd->selection, buf);
>
>         if (dir) free(dir);
>         return sd->selection;
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to