mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
...
This commit is contained in:
parent
e00b12ca70
commit
7602c059b6
@ -24,7 +24,7 @@ class Highlights(QListWidget):
|
||||
|
||||
def load(self, highlights):
|
||||
self.clear()
|
||||
for h in highlights:
|
||||
for h in highlights or ():
|
||||
i = QListWidgetItem(h['highlighted_text'], self)
|
||||
i.setData(Qt.UserRole, h)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user