Avoid blank entries in the Files menu.

Patch by manio


SVN revision: 41731
This commit is contained in:
Iván Briano 2009-08-13 03:07:17 +00:00
parent e7cbd2978d
commit 7e4367102e
1 changed files with 6 additions and 6 deletions

View File

@ -171,11 +171,7 @@ e_fm2_hal_volume_add(E_Volume *v)
s->volumes = eina_list_append(s->volumes, v);
}
if ((v->storage) &&
((!v->mount_point) ||
(strcmp(v->mount_point, "/") &&
strcmp(v->mount_point, "/home") &&
strcmp(v->mount_point, "/tmp"))))
if (v->storage)
{
char label[1024] = {0};
char size[256] = {0};
@ -264,7 +260,11 @@ e_fm2_hal_volume_add(E_Volume *v)
v->icon = strdup(icon);
}
_e_fm2_volume_write(v);
if ((!v->mount_point) ||
(strcmp(v->mount_point, "/") &&
strcmp(v->mount_point, "/home") &&
strcmp(v->mount_point, "/tmp")))
_e_fm2_volume_write(v);
}
}