fix for inconsistency when moving the selection while callback is not called
[enigma2.git] / lib / python / Components / config.py
index 1486420c22d4f26cc927b84a9e5262b660affe50..c433f01bb47b619240f9c5ce767457fa0861fbd0 100644 (file)
@@ -77,7 +77,7 @@ class configSelection:
                
                self.checkValues()                      
 
-               self.parent.change()    
+               self.parent.change()
 
        def __call__(self, selected):                   #needed by configlist
                self.checkValues()
@@ -291,8 +291,8 @@ class configText:
                self.parent.save()
                
        def nextEntry(self):
-               print "Next entry"
-               self.handleKey(config.key["nextElement"])
+               print self.parent
+               self.parent.vals[1](self.parent.getConfigPath())
 
        def handleKey(self, key):
                #this will no change anything on the value itself
@@ -393,7 +393,7 @@ class configElement:
                                        tcnt = cnt
                        cnt += 1
                if tcnt != -1:
-                       return tcnt                     
+                       return tcnt
                return 0        #prevent bigger then array
 
        def datafromFile(self, control, data):
@@ -469,6 +469,10 @@ class configElement:
                self.notifierList = [ ]
                self.enabled = True
                self.loadData()         
+               
+       def getConfigPath(self):
+               return self.configPath
+       
        def addNotifier(self, notifier):
                self.notifierList.append(notifier);
                notifier(self);