Explicitly disable the context menus for the link panel of the reports tool

This commit is contained in:
Kovid Goyal 2016-12-29 09:38:47 +05:30
parent e66347efea
commit 7d808289db

View File

@ -601,6 +601,8 @@ class LinksWidget(QWidget):
self.links.restore_table('links-table', sort_column=1)
self.view = WebView(self)
secure_web_page(self.view.page())
self.setContextMenuPolicy(Qt.NoContextMenu)
self.view.setContextMenuPolicy(Qt.NoContextMenu)
s.addWidget(self.view)
self.ignore_current_change = False
self.current_url = None