Skip to content

Commit

Permalink
Restored menubar and toolbar context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
donob4n committed Apr 12, 2020
1 parent ac70860 commit 2a55c5d
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions qubesmanager/qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,18 +635,10 @@ def __init__(self, qt_app, qubes_app, dispatcher, _parent=None):
self.tools_context_menu.addAction(self.action_toolbar)
self.tools_context_menu.addAction(self.action_menubar)

#self.connect(self.table,
# SIGNAL("customContextMenuRequested(const QPoint&)"),
# self.open_context_menu)
#self.connect(self.menubar,
# SIGNAL("customContextMenuRequested(const QPoint&)"),
# lambda pos: self.open_tools_context_menu(self.menubar,
# pos))
#self.connect(self.toolbar,
# SIGNAL("customContextMenuRequested(const QPoint&)"),
# lambda pos: self.open_tools_context_menu(self.toolbar,
# pos))

self.menubar.customContextMenuRequested.connect(
lambda pos: self.open_tools_context_menu(self.menubar,pos))
self.toolbar.customContextMenuRequested.connect(
lambda pos: self.open_tools_context_menu(self.toolbar,pos))
self.action_menubar.toggled.connect(self.showhide_menubar)
self.action_toolbar.toggled.connect(self.showhide_toolbar)
self.logs_menu.triggered.connect(self.show_log)
Expand Down

0 comments on commit 2a55c5d

Please sign in to comment.