Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-12-19 17:39:34 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-12-19 17:54:20 (GMT)
commit81c5ed02f34db2b0760a4bc219a7eef4f4d24a24 (patch)
treec9b1023932f7b82710829112a9f3df7c11e700cf
parent561ef0df68354e93a84024aa46c98d9e3a302b7b (diff)
#2545 Correctly unmount the device from the DS when it is removed.
-rw-r--r--NEWS3
-rw-r--r--volumesmanager.py5
2 files changed, 4 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 4a2cabb..cb2dd1d 100644
--- a/NEWS
+++ b/NEWS
@@ -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):