From 763808c2258cbbf7cb9e1e98d4a94e23eb6bace0 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 27 Mar 2011 12:49:52 +0000 Subject: [PATCH] MediaObject is called Media in some places svn: r16943 --- src/gui/makefilter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/makefilter.py b/src/gui/makefilter.py index 08c1ac12c..916f0b4e0 100644 --- a/src/gui/makefilter.py +++ b/src/gui/makefilter.py @@ -12,6 +12,8 @@ def make_filter(dbstate, uistate, objclass, gramps_ids, title=None): >>> make_filter(dbstate, uistate, 'Person', ['I0003', ...]) """ + if objclass == "Media": + objclass = "MediaObject" FilterClass = Filters.GenericFilterFactory(objclass) rule = getattr(getattr(Filters.Rules, objclass),'RegExpIdOf') filter = FilterClass()