From 12f2a2f713bf7bbde6ab4695602f01147a2d823e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 May 2020 20:29:11 +0530 Subject: [PATCH] Prevent context menu when selecting location in ToC editor --- src/calibre/gui2/toc/location.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/toc/location.py b/src/calibre/gui2/toc/location.py index d36b83c76e..e54e0dab4d 100644 --- a/src/calibre/gui2/toc/location.py +++ b/src/calibre/gui2/toc/location.py @@ -90,6 +90,9 @@ class WebView(QWebEngineView): # {{{ def sizeHint(self): return QSize(1500, 300) + + def contextMenuEvent(self, ev): + pass # }}}