Re: [virt-manager PATCH] Fix toolbar toggling in details window

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

 



On 01/07/2014 04:20 AM, Martin Kletzander wrote:
> When refreshing the details window after it has been already
> initialized, we don't change the value of the View->Toolbar item in
> the menus on which then the toggle_toolbar() depends and due to the
> menu keeping the old value, the toolbar might (not) be shown even if
> it should not (or should) be.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1049145
> Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
> ---
> 
> Notes:
>     I tracked the issue down here, but there might be more problems where
>     we depend on such "saved" values.  Don't hesistate to let me know this
>     isn't an appropriate fix.
> 
>  virtManager/details.py | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/virtManager/details.py b/virtManager/details.py
> index 258bdb0..2940b78 100644
> --- a/virtManager/details.py
> +++ b/virtManager/details.py
> @@ -1,5 +1,5 @@
>  #
> -# Copyright (C) 2006-2008, 2013 Red Hat, Inc.
> +# Copyright (C) 2006-2008, 2013, 2014 Red Hat, Inc.
>  # Copyright (C) 2006 Daniel P. Berrange <berrange@xxxxxxxxxx>
>  #
>  # This program is free software; you can redistribute it and/or modify
> @@ -1297,6 +1297,8 @@ class vmmDetails(vmmGObjectUI):
>          vm = self.vm
>          status = self.vm.status()
> 
> +        self.widget("details-menu-view-toolbar").set_active(
> +            self.config.get_details_show_toolbar())
>          self.toggle_toolbar(self.widget("details-menu-view-toolbar"))
> 
>          active = vm.is_active()
> 

Looks fine to me, I've pushed it now.

Thanks,
Cole

_______________________________________________
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