mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 18:23:26 +02:00
Fix "match any" not working in the search dialog.
This commit is contained in:
parent
0da16c5640
commit
df8f2d88d0
3 changed files with 8 additions and 4 deletions
|
|
@ -84,5 +84,8 @@ def search_string(self):
|
|||
token = tok.token()
|
||||
if token:
|
||||
ans.append(token)
|
||||
return ' '.join(ans)
|
||||
ans = ' '.join(ans)
|
||||
if self.match_any.isChecked():
|
||||
ans = '['+ans+']'
|
||||
return ans
|
||||
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<item>
|
||||
<widget class="QRadioButton" name="radioButton" >
|
||||
<widget class="QRadioButton" name="match_all" >
|
||||
<property name="text" >
|
||||
<string>Match a&ll of the following criteria</string>
|
||||
</property>
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="radioButton_2" >
|
||||
<widget class="QRadioButton" name="match_any" >
|
||||
<property name="text" >
|
||||
<string>Match a&ny of the following criteria</string>
|
||||
</property>
|
||||
|
|
|
|||
|
|
@ -754,4 +754,5 @@ def set_search_string(self, txt):
|
|||
self.normalize_state()
|
||||
self.setText(txt)
|
||||
self.emit(SIGNAL('search(PyQt_PyObject, PyQt_PyObject)'), txt, False)
|
||||
self.end(False)
|
||||
self.end(False)
|
||||
self.initial_state = False
|
||||
Loading…
Reference in a new issue