details: hiding removebutton for USB controller

commit 4c53debd8a
break hiding "config-remove" for USB controller.
This patch will fix this issue.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
Chen Hanxiao 2014-04-15 22:44:43 +08:00
parent 1d312a520e
commit 86fc54be8e

View File

@ -3039,7 +3039,7 @@ class vmmDetails(vmmGObjectUI):
model.append(["ich9-ehci1", "USB 2"])
model.append(["nec-xhci", "USB 3"])
self.widget("config-remove").set_sensitive(False)
if dev.type == virtinst.VirtualController.TYPE_SCSI:
elif dev.type == virtinst.VirtualController.TYPE_SCSI:
model.append(["default", "Default"])
model.append(["virtio-scsi", "VirtIO SCSI"])
else: