mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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
This commit is contained in:
parent
57a3641e54
commit
73637baaa9
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user