More PyQt6 nonsense

This commit is contained in:
Kovid Goyal 2021-11-20 11:09:00 +05:30
parent 5363c147ba
commit b1686441bd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -226,7 +226,7 @@ class View(QWebEngineView):
inspect_element = pyqtSignal()
def contextMenuEvent(self, ev):
menu = self.page().createStandardContextMenu()
menu = self.createStandardContextMenu()
menu.addSeparator()
menu.addAction(_('Zoom in'), self.page().zoom_in)
menu.addAction(_('Zoom out'), self.page().zoom_out)