From a30fb195d04b56b9a84b515c63b8dd3c75c586c2 Mon Sep 17 00:00:00 2001 From: John Schember Date: Wed, 9 Nov 2011 18:58:41 -0500 Subject: [PATCH] Fix issue: 887554, booleans translated. --- src/calibre/gui2/store/search/adv_search_builder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/store/search/adv_search_builder.py b/src/calibre/gui2/store/search/adv_search_builder.py index 703ab780b4..e80d19aee4 100644 --- a/src/calibre/gui2/store/search/adv_search_builder.py +++ b/src/calibre/gui2/store/search/adv_search_builder.py @@ -121,13 +121,13 @@ class AdvSearchBuilderDialog(QDialog, Ui_Dialog): format = unicode(self.format_box.text()).strip() if 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: 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: 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: ans.append('affiliate:' + affiliate) if ans: