[virt-tools-list] [PATCH 2/2] fix argument error when right-clicking hw list to popup menu

Cole Robinson crobinso at redhat.com
Sun Apr 14 17:18:15 UTC 2013


On 04/12/2013 08:38 AM, Guannan Ren wrote:
> Traceback (most recent call last):
>   File "../virt-manager/virtManager/details.py", line 1072, in popup_addhw_menu
>     self.addhwmenu.popup(None, None, None, 0, event.time)
> TypeError: popup() takes exactly 7 arguments (6 given)
> 
> ---
>  virtManager/details.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/virtManager/details.py b/virtManager/details.py
> index bd772ce..e11c3fe 100644
> --- a/virtManager/details.py
> +++ b/virtManager/details.py
> @@ -1069,7 +1069,7 @@ class vmmDetails(vmmGObjectUI):
>          if event.button != 3:
>              return
>  
> -        self.addhwmenu.popup(None, None, None, 0, event.time)
> +        self.addhwmenu.popup(None, None, None, None, 0, event.time)
>  
>      def build_serial_list(self):
>          ret = []
> 

Thanks, applied.

There were a couple other similar broken popups, I fixed those as well.

- Cole




More information about the virt-tools-list mailing list