fix inverted setting (meaning was inverted too)
[enigma2.git] / lib / python / Components / ServiceName.py
index 5352de5..a9c0930 100644 (file)
@@ -12,13 +12,14 @@ class ServiceName(PerServiceDisplay):
                        })
 
        def newService(self):
-               info = iServiceInformationPtr()
                service = self.navcore.getCurrentService()
                
-               if service != None:
-                       if not service.info(info):
-                               self.setText(info.getName())
-                               setLCD(info.getName())
+               if service is not None:
+                       info = service.info()
+                       if info is not None:
+                               name = info.getName()
+                               self.setText(name)
+                               setLCD(name)
        
        def stopEvent(self):
                        self.setText("");