mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Fix regression that broke searching in the highlights panel
This commit is contained in:
parent
98c80431c7
commit
ce41a1f32c
@ -249,7 +249,6 @@ class Highlights(QTreeWidget):
|
||||
return self.num_of_items
|
||||
|
||||
def find_query(self, query):
|
||||
cr = self.currentRow()
|
||||
pat = query.regex
|
||||
items = tuple(self.iteritems())
|
||||
count = len(items)
|
||||
@ -257,7 +256,8 @@ class Highlights(QTreeWidget):
|
||||
ch = self.current_highlight
|
||||
if ch:
|
||||
q = ch['uuid']
|
||||
for i, h in enumerate(items):
|
||||
for i, item in enumerate(items):
|
||||
h = item.data(0, Qt.UserRole)
|
||||
if h['uuid'] == q:
|
||||
cr = i
|
||||
if query.backwards:
|
||||
|
Loading…
x
Reference in New Issue
Block a user