fix loop in fm favorites view: delete .desktop for non existing device

SVN revision: 56715
This commit is contained in:
Hannes Janetzek 2011-02-04 20:33:30 +00:00
parent 629b3a304e
commit b7cfdd21f1
1 changed files with 6 additions and 1 deletions

View File

@ -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)))
{
_e_fm2_live_file_del(ic->sd->obj, ic->info.file);
/* 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;
}