mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix double clicking on chapter heading in highlights panel causing an exception
This commit is contained in:
parent
1f7be299fd
commit
5b33fe6884
@ -292,7 +292,9 @@ class Highlights(QTreeWidget):
|
||||
return False
|
||||
|
||||
def item_activated(self, item):
|
||||
self.jump_to_highlight.emit(item.data(0, Qt.UserRole))
|
||||
h = item.data(0, Qt.UserRole)
|
||||
if h is not None:
|
||||
self.jump_to_highlight.emit(h)
|
||||
|
||||
@property
|
||||
def current_highlight(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user