From 9c969a2c0a8efd143cc9f405c078ece498d2c003 Mon Sep 17 00:00:00 2001 From: Davide Andreoli Date: Mon, 29 Apr 2013 18:45:27 +0000 Subject: [PATCH] Places: Fix name for volumes without a label SVN revision: 84536 --- src/e_mod_places.c | 3 +++ src/e_mod_udisks_edbus2.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/e_mod_places.c b/src/e_mod_places.c index 94fe556..f3cbec2 100644 --- a/src/e_mod_places.c +++ b/src/e_mod_places.c @@ -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 diff --git a/src/e_mod_udisks_edbus2.c b/src/e_mod_udisks_edbus2.c index a783370..62fdb40 100644 --- a/src/e_mod_udisks_edbus2.c +++ b/src/e_mod_udisks_edbus2.c @@ -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);