From 73637baaa981af5fe67e57841df17e1d50f2c15e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 30 Oct 2022 08:55:31 +0530 Subject: [PATCH] Edit book: Fix double clicking in the see what changed dialog not opening the file in the editor since calibre 6.0 PyQt6's enums strike again --- src/calibre/gui2/tweak_book/diff/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/diff/view.py b/src/calibre/gui2/tweak_book/diff/view.py index db1d068542..39ee3fc07c 100644 --- a/src/calibre/gui2/tweak_book/diff/view.py +++ b/src/calibre/gui2/tweak_book/diff/view.py @@ -179,7 +179,7 @@ class TextBrowser(PlainTextEdit): # {{{ m.exec(self.mapToGlobal(pos)) def mouseDoubleClickEvent(self, ev): - if ev.button() == 1: + if ev.button() == Qt.MouseButton.LeftButton: b = self.cursorForPosition(ev.pos()).block() if b.isValid(): self.generate_sync_request(b.blockNumber())