mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix get saved search text not working if there is a leading =
This commit is contained in:
parent
f5761a98a2
commit
1eeb0c7c92
@ -604,7 +604,7 @@ class SavedSearchBoxMixin(object): # {{{
|
||||
current_search = self.search.currentText()
|
||||
if not current_search.startswith('search:"'):
|
||||
raise ValueError()
|
||||
current_search = current_search[8:-1]
|
||||
current_search = current_search[8:-1].lstrip('=')
|
||||
current_search = db.saved_search_lookup(current_search)
|
||||
if not current_search:
|
||||
raise ValueError()
|
||||
|
Loading…
x
Reference in New Issue
Block a user