forked from enlightenment/enlightenment
when loading a .desktop file with fprev which is a link but NOT a link to removable media, set the link target as the new file to be previewed and update (fixes previews of .desktop files pointing to directories)
SVN revision: 77414
This commit is contained in:
parent
641e1f92fc
commit
ae68c2d7a9
|
@ -519,6 +519,22 @@ _e_wid_fprev_preview_file(E_Widget_Data *wd)
|
|||
eina_stringshare_del(file);
|
||||
}
|
||||
}
|
||||
else if ((desktop) && (desktop->url) &&
|
||||
(desktop->type == EFREET_DESKTOP_TYPE_LINK))
|
||||
{
|
||||
const char *url;
|
||||
/* we don't know what the desktop points to here,
|
||||
* so we'll just run recursively until we get a real file
|
||||
*/
|
||||
url = e_fm2_desktop_url_eval(desktop->url);
|
||||
if (url)
|
||||
{
|
||||
eina_stringshare_del(wd->path);
|
||||
wd->path = url;
|
||||
_e_wid_fprev_preview_file(wd);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (desktop) efreet_desktop_free(desktop);
|
||||
}
|
||||
#ifdef HAVE_EMOTION
|
||||
|
|
Loading…
Reference in New Issue