From adb4883291159298781144706fa5bc6331870ef2 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 21 Jun 2017 18:19:43 +0100 Subject: [PATCH] Fix HasCitation rule in citation filter sidebar Filter parameters should be of type str. Fixes #10076. --- gramps/gui/filters/sidebar/_citationsidebarfilter.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gramps/gui/filters/sidebar/_citationsidebarfilter.py b/gramps/gui/filters/sidebar/_citationsidebarfilter.py index 000e50315..24d9067f0 100644 --- a/gramps/gui/filters/sidebar/_citationsidebarfilter.py +++ b/gramps/gui/filters/sidebar/_citationsidebarfilter.py @@ -142,15 +142,7 @@ class CitationSidebarFilter(SidebarFilter): gid = str(self.filter_id.get_text()).strip() page = str(self.filter_page.get_text()).strip() date = str(self.filter_date.get_text()).strip() - model = self.filter_conf.get_model() - node = self.filter_conf.get_active_iter() - conf_name = model.get_value(node, 0) # The value is actually the text - conf = Citation.CONF_NORMAL - for i in list(conf_strings.keys()): - if _(conf_strings[i]) == conf_name: - conf = i - break -# conf = self.citn.get_confidence_level() + conf = str(self.filter_conf.get_active()) note = str(self.filter_note.get_text()).strip() regex = self.filter_regex.get_active() tag = self.tag.get_active() > 0