summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-10-08 20:26:11 -0400
committerDavid Zeuthen <davidz@redhat.com>2009-10-08 20:26:11 -0400
commit1f58b7f56d8136b8ab0fe3d85c6315244d83fe0d (patch)
tree037ebc98dd5be65e6cd22fef61d306d432649642
parent6e70902ee77cb0bd6063bcf4d215b13a13bf5ee4 (diff)
downloadgvfs-1f58b7f56d8136b8ab0fe3d85c6315244d83fe0d.tar.gz
Fix return value of gdu_drive_can_poll_for_media()
If a drive doesn't use removable media, we shouldn't advertise that it can be polled.
-rw-r--r--monitor/gdu/ggdudrive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/gdu/ggdudrive.c b/monitor/gdu/ggdudrive.c
index 9920829d..20f8940b 100644
--- a/monitor/gdu/ggdudrive.c
+++ b/monitor/gdu/ggdudrive.c
@@ -190,7 +190,7 @@ update_drive (GGduDrive *drive)
*/
drive->can_eject = gdu_device_drive_get_is_media_ejectable (device) || gdu_device_drive_get_requires_eject (device) || gdu_device_is_removable (device);
drive->is_media_check_automatic = gdu_device_is_media_change_detected (device);
- drive->can_poll_for_media = TRUE;
+ drive->can_poll_for_media = gdu_device_is_removable (device);
}
/* determine start/stop type */