[virt-tools-list] [PATCH virt-manager] AddHardware: Fix checking if a widget is sensitive
Cole Robinson
crobinso at redhat.com
Tue May 29 23:09:32 UTC 2012
On 05/14/2012 11:37 AM, Eduardo Elias Ferreira wrote:
>
> 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())
is_sensitive() does work on F16, but this is probably just a RHEL6 back compat
issue, so thanks for the patch.
Applied now, and added you to AUTHORS.
Thanks,
Cole
More information about the virt-tools-list
mailing list