From 6f9ed19a0444ff7e3f1fba678bd189f3eb321bcb Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 4 Nov 2010 14:02:03 +0000 Subject: [PATCH] Allow customFilters.get_filters() to return a list where an item might be a list of custom filters svn: r16130 --- src/Filters/_FilterMenu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Filters/_FilterMenu.py b/src/Filters/_FilterMenu.py index 29eadfbcd..3f560f313 100644 --- a/src/Filters/_FilterMenu.py +++ b/src/Filters/_FilterMenu.py @@ -49,5 +49,6 @@ def build_filter_model(space, local = []): if isinstance(filt, (list, tuple)): for subfilt in filt: model.append(row=[subfilt.get_name(), subfilt]) - model.append(row=[filt.get_name(), filt]) + else: + model.append(row=[filt.get_name(), filt]) return model