mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -176,7 +176,10 @@ class SearchDialog(QDialog, Ui_Dialog):
|
||||
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…
x
Reference in New Issue
Block a user