diff options
author | David Zeuthen <davidz@redhat.com> | 2009-10-08 20:26:11 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2009-10-08 20:28:26 -0400 |
commit | 780bae9c28df7e6d5f2463d9621f7db48524ee24 (patch) | |
tree | e5c2f08ebca28255f1c1c0c9a3cde395957d75bf | |
parent | 92bd6869f22bbe582f51f4ffca4d71f65ef9d6a6 (diff) | |
download | gvfs-780bae9c28df7e6d5f2463d9621f7db48524ee24.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.c | 2 |
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 */ |