mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-24 21:34:47 +03:00
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:
parent
9929d8b21e
commit
983930d1da
1
AUTHORS
1
AUTHORS
@ -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...>
|
||||
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user