forked from enlightenment/enlightenment
fix loop in fm favorites view: delete .desktop for non existing device
SVN revision: 56715
This commit is contained in:
parent
629b3a304e
commit
b7cfdd21f1
|
@ -4973,7 +4973,12 @@ _e_fm2_icon_desktop_load(E_Fm2_Icon *ic)
|
|||
if ((!e_fm2_device_storage_find(ic->info.link)) &&
|
||||
(!e_fm2_device_volume_find(ic->info.link)))
|
||||
{
|
||||
/* delete .desktop for non existing device */
|
||||
if (ecore_file_remove(buf))
|
||||
_e_fm2_live_file_del(ic->sd->obj, ic->info.file);
|
||||
else /* ignore */
|
||||
_e_fm2_file_del(ic->sd->obj, ic->info.file);
|
||||
|
||||
efreet_desktop_free(desktop);
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue