diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-12-19 17:39:34 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-12-19 17:54:20 (GMT) |
commit | 81c5ed02f34db2b0760a4bc219a7eef4f4d24a24 (patch) | |
tree | c9b1023932f7b82710829112a9f3df7c11e700cf | |
parent | 561ef0df68354e93a84024aa46c98d9e3a302b7b (diff) |
#2545 Correctly unmount the device from the DS when it is removed.
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | volumesmanager.py | 5 |
2 files changed, 4 insertions, 4 deletions
@@ -1,3 +1,6 @@ +* #2545 Correctly unmount the device from the DS when it is removed. (tomeu) +* Implement ShowObject, #4909 (rwh) + 81 * #5367 Cache icons extracted from bundles. (tomeu) diff --git a/volumesmanager.py b/volumesmanager.py index f0948ce..91efc81 100644 --- a/volumesmanager.py +++ b/volumesmanager.py @@ -182,10 +182,7 @@ class VolumesManager(gobject.GObject): return volume_id = self._mount_in_datastore(udi) else: - volume = self._get_volume_by_udi(udi) - if volume is not None: - self._volumes.remove(volume) - self.emit('volume-removed', volume) + self.unmount_from_datastore(udi) return def _mount_in_datastore(self, udi): |