From 365f0b7e8985ab282cb7117194ac767ea7f11cc6 Mon Sep 17 00:00:00 2001 From: Moritz Venn Date: Sat, 14 Feb 2009 20:24:09 +0000 Subject: [PATCH] do not use a custom attribute for the parent screen but the generic one --- tageditor/src/plugin.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tageditor/src/plugin.py b/tageditor/src/plugin.py index f116075..1adf711 100644 --- a/tageditor/src/plugin.py +++ b/tageditor/src/plugin.py @@ -35,8 +35,8 @@ class TagEditor(Screen): """ - def __init__(self, session, tags, txt = None, args = 0): - Screen.__init__(self, session, args) + def __init__(self, session, tags, txt = None, args = 0, parent = None): + Screen.__init__(self, session, parent = parent) # Initialize Buttons self["key_red"] = Button(_("Cancel")) @@ -273,7 +273,6 @@ class TagEditor(Screen): class MovieTagEditor(TagEditor): def __init__(self, session, service, parent, args = 0): self.service = service - self.parentscreen = parent serviceHandler = eServiceCenter.getInstance() info = serviceHandler.info(service) path = service.getPath() @@ -285,7 +284,7 @@ class MovieTagEditor(TagEditor): tags = tags.split(' ') else: tags = [] - TagEditor.__init__(self, session, tags, args) + TagEditor.__init__(self, session, tags, args, parent = parent) def saveTags(self, file, tags): if os_path.exists(file + ".ts.meta"): @@ -321,7 +320,7 @@ class MovieTagEditor(TagEditor): # This will try to get back to an updated movie list. # A proper way to do this should be provided in enigma2. try: - parentscreen = self.parentscreen + parentscreen = self.parent parentscreen.csel.reloadList() parentscreen.close() except AttributeError: -- 2.7.4