mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-03 18:03:56 +01:00
1) small correction to search box coloring
2) correct inlibrary search feature in model (exception on bool)
This commit is contained in:
parent
544b4648e1
commit
5e71cbddf3
2 changed files with 5 additions and 5 deletions
|
|
@ -823,6 +823,8 @@ def get_matches(self, location, query):
|
|||
if accessor(row) is None:
|
||||
matches.add(index)
|
||||
continue
|
||||
if locvalue == 'inlibrary':
|
||||
continue # this is bool, so can't match below
|
||||
try:
|
||||
### Can't separate authors because comma is used for name sep and author sep
|
||||
### Exact match might not get what you want. For that reason, turn author
|
||||
|
|
|
|||
|
|
@ -136,11 +136,9 @@ def search_done(self, ok):
|
|||
|
||||
def key_pressed(self, event):
|
||||
self.normalize_state()
|
||||
if not self.as_you_type:
|
||||
if event.key() in (Qt.Key_Return, Qt.Key_Enter):
|
||||
self.do_search()
|
||||
else:
|
||||
self.timer = self.startTimer(self.__class__.INTERVAL)
|
||||
if event.key() in (Qt.Key_Return, Qt.Key_Enter):
|
||||
self.do_search()
|
||||
self.timer = self.startTimer(self.__class__.INTERVAL)
|
||||
|
||||
def mouse_released(self, event):
|
||||
self.normalize_state()
|
||||
|
|
|
|||
Loading…
Reference in a new issue