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

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



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


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