mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-27 01:24:28 +01:00
Fix regression that broke searching in the highlights panel
This commit is contained in:
parent
98c80431c7
commit
ce41a1f32c
1 changed files with 2 additions and 2 deletions
|
|
@ -249,7 +249,6 @@ def count(self):
|
|||
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 @@ def find_query(self, query):
|
|||
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…
Reference in a new issue