[virt-tools-list] [PATCH virt-manager] AddHardware: Fix checking if a widget is sensitive

Eduardo Elias Ferreira edusf at linux.vnet.ibm.com
Mon May 14 15:37:01 UTC 2012


Signed-off-by: Eduardo Elias Ferreira <edusf at linux.vnet.ibm.com>
---
 src/virtManager/addhardware.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/virtManager/addhardware.py b/src/virtManager/addhardware.py
index 50852ed..d370884 100644
--- a/src/virtManager/addhardware.py
+++ b/src/virtManager/addhardware.py
@@ -789,7 +789,7 @@ class vmmAddHardware(vmmGObjectUI):
     # USB redir getters
     def get_config_usbredir_host(self):
         host = self.widget("usbredir-host")
-        if not host.is_sensitive():
+        if not host.props.sensitive:
             return None
 
         hoststr = host.get_text()
@@ -797,7 +797,7 @@ class vmmAddHardware(vmmGObjectUI):
 
     def get_config_usbredir_service(self):
         service = self.widget("usbredir-service")
-        if not service.is_sensitive():
+        if not service.props.sensitive:
             return None
 
         return int(service.get_value())
-- 
1.7.1




More information about the virt-tools-list mailing list