mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Forgot to report hidden search results
This commit is contained in:
parent
9924018740
commit
2c794839db
@ -401,8 +401,8 @@ class Results(QListWidget): # {{{
|
||||
break
|
||||
r.index -= 1
|
||||
self.takeItem(remove)
|
||||
if remove < self.count():
|
||||
self.setCurrentRow(remove)
|
||||
if self.count():
|
||||
self.setCurrentRow(min(remove, self.count()-1))
|
||||
self.item_activated()
|
||||
# }}}
|
||||
|
||||
|
@ -583,6 +583,8 @@ class IframeBoss:
|
||||
if select_search_result(data.search_result):
|
||||
if current_layout_mode() is not 'flow':
|
||||
snap_to_selection()
|
||||
else:
|
||||
self.send_message('search_result_not_found', search_result=data.search_result)
|
||||
|
||||
def reference_item_changed(self, ref_num_or_none):
|
||||
self.send_message('reference_item_changed', refnum=ref_num_or_none, index=current_spine_item().index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user