forked from enlightenment/enlightenment
e17/efm: fix e_fm2_path_set: show contents of 'removable' mountpoints also when the device is already mounted
SVN revision: 61683
This commit is contained in:
parent
b5786321d1
commit
016fde39dc
|
@ -1001,6 +1001,8 @@ e_fm2_path_set(Evas_Object *obj, const char *dev, const char *path)
|
||||||
sd->mount = NULL;
|
sd->mount = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!realpath)
|
||||||
|
{
|
||||||
/* If the path is of type removable: we add a new mountpoint */
|
/* If the path is of type removable: we add a new mountpoint */
|
||||||
if (sd->dev && !sd->mount && !strncmp(sd->dev, "removable:", 10))
|
if (sd->dev && !sd->mount && !strncmp(sd->dev, "removable:", 10))
|
||||||
{
|
{
|
||||||
|
@ -1024,6 +1026,7 @@ e_fm2_path_set(Evas_Object *obj, const char *dev, const char *path)
|
||||||
_e_fm2_cb_mount_ok, _e_fm2_cb_mount_fail,
|
_e_fm2_cb_mount_ok, _e_fm2_cb_mount_fail,
|
||||||
_e_fm2_cb_unmount_ok, NULL, obj);
|
_e_fm2_cb_unmount_ok, NULL, obj);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!sd->mount || sd->mount->mounted)
|
if (!sd->mount || sd->mount->mounted)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue