Only popup vol copy path menu on right click (not any click)
This commit is contained in:
parent
15545c1ebe
commit
9890303af7
|
@ -614,6 +614,9 @@ class vmmHost(gobject.GObject):
|
||||||
self.window.get_widget("vol-delete").set_sensitive(True)
|
self.window.get_widget("vol-delete").set_sensitive(True)
|
||||||
|
|
||||||
def popup_vol_menu(self, widget, event):
|
def popup_vol_menu(self, widget, event):
|
||||||
|
if event.button != 3:
|
||||||
|
return
|
||||||
|
|
||||||
tup = widget.get_path_at_pos(int(event.x), int(event.y))
|
tup = widget.get_path_at_pos(int(event.x), int(event.y))
|
||||||
if tup == None:
|
if tup == None:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue