Advanced search dialog: Fix equals and regex matching not being applied for custom column searches. Fixes #980221 ("Tags" field in advanced search does not obey regex setting)

This commit is contained in:
Kovid Goyal 2012-05-14 08:43:23 +05:30
parent 220a4d8cb9
commit 94440f3fc6

View File

@ -182,7 +182,8 @@ class SearchDialog(QDialog, Ui_Dialog):
global box_values global box_values
box_values = copy.deepcopy(self.box_last_values) box_values = copy.deepcopy(self.box_last_values)
if general: if general:
ans.append(unicode(self.general_combo.currentText()) + ':"' + general + '"') ans.append(unicode(self.general_combo.currentText()) + ':"' +
self.mc + general + '"')
if ans: if ans:
return ' and '.join(ans) return ' and '.join(ans)
return '' return ''