mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix issue: 887554, booleans translated.
This commit is contained in:
parent
2030710733
commit
a30fb195d0
@ -121,13 +121,13 @@ class AdvSearchBuilderDialog(QDialog, Ui_Dialog):
|
|||||||
format = unicode(self.format_box.text()).strip()
|
format = unicode(self.format_box.text()).strip()
|
||||||
if format:
|
if format:
|
||||||
ans.append('format:"' + self.mc + format + '"')
|
ans.append('format:"' + self.mc + format + '"')
|
||||||
drm = unicode(self.drm_combo.currentText()).strip()
|
drm = '' if self.drm_combo.currentIndex() == 0 else 'true' if self.drm_combo.currentIndex() == 1 else 'false'
|
||||||
if drm:
|
if drm:
|
||||||
ans.append('drm:' + drm)
|
ans.append('drm:' + drm)
|
||||||
download = unicode(self.download_combo.currentText()).strip()
|
download = '' if self.download_combo.currentIndex() == 0 else 'true' if self.download_combo.currentIndex() == 1 else 'false'
|
||||||
if download:
|
if download:
|
||||||
ans.append('download:' + download)
|
ans.append('download:' + download)
|
||||||
affiliate = unicode(self.affiliate_combo.currentText()).strip()
|
affiliate = '' if self.affiliate_combo.currentIndex() == 0 else 'true' if self.affiliate_combo.currentIndex() == 1 else 'false'
|
||||||
if affiliate:
|
if affiliate:
|
||||||
ans.append('affiliate:' + affiliate)
|
ans.append('affiliate:' + affiliate)
|
||||||
if ans:
|
if ans:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user