clear list of devices

otherwise we keep adding the same device over and over again
This commit is contained in:
Guido Gunther
2008-10-02 15:43:27 +02:00
parent 4ac507f181
commit c30ac57000

View File

@@ -45,6 +45,7 @@ class vmmOpticalDriveHelper(gobject.GObject):
# get a list of optical devices with data discs in, for FV installs
vollabel = {}
volpath = {}
self.model.clear()
# Track device add/removes so we can detect newly inserted CD media
self.hal_iface.connect_to_signal("DeviceAdded", self._device_added)
self.hal_iface.connect_to_signal("DeviceRemoved", self._device_removed)