This commit is contained in:
Kovid Goyal 2020-04-30 13:56:27 +05:30
parent e00b12ca70
commit 7602c059b6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)