create configElement in __init__ only
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 15 Nov 2005 15:37:43 +0000 (15:37 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 15 Nov 2005 15:37:43 +0000 (15:37 +0000)
lib/python/Screens/ChannelSelection.py

index d83d3d7..6c8164b 100644 (file)
@@ -63,12 +63,15 @@ class ChannelSelection(Screen):
        def lastService(self):
                self.lastServiceTimer.stop()
                #zap to last running tv service
-               config.tv = ConfigSubsection();
-               config.tv.lastservice = configElement("config.tv.lastservice", configText, "", 0);
                self.session.nav.playService(eServiceReference(config.tv.lastservice.value))
        
        def __init__(self, session):
                Screen.__init__(self, session)
+
+               #config for lastservice
+               config.tv = ConfigSubsection();
+               config.tv.lastservice = configElement("config.tv.lastservice", configText, "", 0);
+
                
                self.entry_marked = False
                self.movemode = False