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

Guannan Ren gren at redhat.com
Fri Apr 12 12:38:36 UTC 2013


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 = []
-- 
1.7.11.2




More information about the virt-tools-list mailing list