fix efm link resolving.. again. new case.

This commit is contained in:
Carsten Haitzler 2013-03-12 15:47:41 +09:00
parent 0d16ba68cd
commit 174a5fab15
1 changed files with 11 additions and 5 deletions

View File

@ -536,11 +536,14 @@ _e_fm2_icon_path(const E_Fm2_Icon *ic, char *buf, int buflen)
char *tmp; char *tmp;
r = snprintf(buf, buflen, "%s/%s", ic->sd->path, ic->info.file); r = snprintf(buf, buflen, "%s/%s", ic->sd->path, ic->info.file);
tmp = ecore_file_realpath(buf); if (!ic->sd->dev)
if (tmp)
{ {
r = snprintf(buf, buflen, "%s", tmp); tmp = ecore_file_realpath(buf);
free(tmp); if (tmp)
{
r = snprintf(buf, buflen, "%s", tmp);
free(tmp);
}
} }
} }
} }
@ -5746,7 +5749,10 @@ _e_fm2_inplace_open(const E_Fm2_Icon *ic)
if (!_e_fm2_icon_path(ic, buf, sizeof(buf))) if (!_e_fm2_icon_path(ic, buf, sizeof(buf)))
return -1; return -1;
e_fm2_path_set(ic->sd->obj, ic->info.link ? "/" : ic->sd->dev, buf); e_fm2_path_set(ic->sd->obj,
// ic->info.link ? "/" : ic->sd->dev,
ic->sd->dev,
buf);
return 1; return 1;
} }