AddHardware: Fix checking if a widget is sensitive

Signed-off-by: Eduardo Elias Ferreira <edusf@linux.vnet.ibm.com>

(crobinso: Added Eduardo to AUTHORS)
This commit is contained in:
Eduardo Elias Ferreira 2012-05-14 12:37:01 -03:00 committed by Cole Robinson
parent 9929d8b21e
commit 983930d1da
2 changed files with 3 additions and 2 deletions

View File

@ -80,6 +80,7 @@ Further patches have been submitted by:
Tuomas Jormola <tj-at-solitudo-dot-net>
Nathan Bird <nathan-at-acceleration-dot-net>
Guannan Ren <gren-at-redhat-dot-com>
Eduardo Elias Ferreira <edusf-at-linux-dot-vnet-dot-ibm-dot-com>
<...send a patch & get your name here...>

View File

@ -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())