[virt-tools-list] [virt-manager PATCH] details: hiding remove button for USB controller

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Tue Apr 15 02:44:52 UTC 2014


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

Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
 virtManager/details.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtManager/details.py b/virtManager/details.py
index 960cec0..2e8991b 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -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:
-- 
1.8.5.3




More information about the virt-tools-list mailing list