Subject: details: hiding removebutton for USB controller From: Chen Hanxiao chenhanxiao@cn.fujitsu.com Tue Apr 15 22:44:43 2014 +0800 Date: Tue Apr 15 22:44:43 2014 +0800: Git: 86fc54be8e1ab40dd3fc7533dd23fe4787f8c5c8 commit 4c53debd8a8e4c193e211cfa5128c9e88392c0a1 break hiding "config-remove" for USB controller. This patch will fix this issue. Signed-off-by: Chen Hanxiao Index: virt-manager-1.0.1/virtManager/details.py =================================================================== --- virt-manager-1.0.1.orig/virtManager/details.py +++ virt-manager-1.0.1/virtManager/details.py @@ -3041,7 +3041,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: