From ffc6b5a3175259bca65f96e15c7501a6fa2570bb Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Tue, 15 May 2012 12:51:23 -0400 Subject: udisks2: set can_eject correctly Yes, can_eject can be TRUE even if the media is not removable. Signed-off-by: David Zeuthen --- monitor/udisks2/gvfsudisks2drive.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monitor/udisks2/gvfsudisks2drive.c b/monitor/udisks2/gvfsudisks2drive.c index 454f340c..da095480 100644 --- a/monitor/udisks2/gvfsudisks2drive.c +++ b/monitor/udisks2/gvfsudisks2drive.c @@ -175,13 +175,12 @@ update_drive (GVfsUDisks2Drive *drive) if (drive->is_media_removable) { drive->has_media = udisks_drive_get_media_available (drive->udisks_drive); - drive->can_eject = udisks_drive_get_ejectable (drive->udisks_drive); } else { drive->has_media = TRUE; - drive->can_eject = FALSE; } + drive->can_eject = udisks_drive_get_ejectable (drive->udisks_drive); udisks_client_get_drive_info (gvfs_udisks2_volume_monitor_get_udisks_client (drive->monitor), drive->udisks_drive, -- cgit v1.2.1