mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-31 20:26:03 +01:00
Advanced search dialog: Fix combining of "One or more words" searches with other search types incorrect. Fixes #1691008 [Advanced Search grouping failure](https://bugs.launchpad.net/calibre/+bug/1691008)
This commit is contained in:
parent
b15521bd74
commit
bf64759aff
1 changed files with 4 additions and 1 deletions
|
|
@ -176,7 +176,10 @@ def adv_search_string(self):
|
|||
if none:
|
||||
ans += (' and not ' if ans else 'not ') + none
|
||||
if any:
|
||||
ans += (' or ' if ans else '') + any
|
||||
if ans:
|
||||
ans += ' and (' + any + ')'
|
||||
else:
|
||||
ans = any
|
||||
return ans
|
||||
|
||||
def token(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue