Places: Fix name for volumes without a label

SVN revision: 84536
This commit is contained in:
Davide Andreoli 2013-04-29 18:45:27 +00:00 committed by Tom Hacohen
parent 87db6172c0
commit 9c969a2c0a
2 changed files with 4 additions and 1 deletions

View File

@ -228,6 +228,9 @@ places_volume_update(Volume *vol)
_places_run_fm(vol->mount_point);
vol->force_open = EINA_FALSE;
}
// debug:
// places_print_volume(vol);
}
void

View File

@ -294,7 +294,7 @@ _places_udisks_vol_props_cb(void *data, const EDBus_Message *msg, EDBus_Pending
else if (mount_point && mount_point[0])
eina_stringshare_replace(&vol->label, mount_point);
else if (device && device[0])
eina_stringshare_replace(&vol->label, vol->device);
eina_stringshare_replace(&vol->label, device);
// store all other props in the Volume*
if (device) eina_stringshare_replace(&vol->device, device);