Ensure Qt's context menu is never displayed for the viewer window

This commit is contained in:
Kovid Goyal 2020-04-16 14:53:28 +05:30
parent d9e6e8f290
commit 1b6c6f420b
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -690,3 +690,7 @@ def palette_changed(self):
def prepare_for_close(self):
self.execute_when_ready('prepare_for_close')
def contextMenuEvent(self, ev):
ev.accept()
self.trigger_shortcut('show_chrome')