mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure Qt's context menu is never displayed for the viewer window
This commit is contained in:
parent
d9e6e8f290
commit
1b6c6f420b
@ -690,3 +690,7 @@ class WebView(RestartingWebEngineView):
|
||||
|
||||
def prepare_for_close(self):
|
||||
self.execute_when_ready('prepare_for_close')
|
||||
|
||||
def contextMenuEvent(self, ev):
|
||||
ev.accept()
|
||||
self.trigger_shortcut('show_chrome')
|
||||
|
Loading…
x
Reference in New Issue
Block a user