[virt-manager PATCH] virt-manager, addhardware: disable "Finish" with unsupported devs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Disabled the "Finish" button in the "Add Hardware" window when the
specified dev is not supported by the HV.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1087670

Signed-off-by: Giuseppe Scrivano <gscrivan@xxxxxxxxxx>
---
 virtManager/addhardware.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index 39ec63f..519aa2b 100644
--- a/virtManager/addhardware.py
+++ b/virtManager/addhardware.py
@@ -1052,6 +1052,8 @@ class vmmAddHardware(vmmGObjectUI):
         sens = row[3]
         msg = row[4] or ""
 
+        self.widget("create-finish").set_sensitive(sens)
+
         if not sens:
             page = PAGE_ERROR
             self.widget("hardware-info").set_text(msg)
-- 
1.9.0

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux