diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-21 01:47:49 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-21 01:47:49 +0000 |
| commit | 2c8c2343f6fe05e59a8633b24d565e0fff5c6a3d (patch) | |
| tree | 663f63e2d211fc2beed5496b3879cd49184a84b6 /lib | |
| parent | 784137020888a4be481b786d2feddf6537663ec8 (diff) | |
| download | enigma2-2c8c2343f6fe05e59a8633b24d565e0fff5c6a3d.tar.gz enigma2-2c8c2343f6fe05e59a8633b24d565e0fff5c6a3d.zip | |
copy lists, not list identities... should fix saving of non-default values
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/python/Components/config.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index e1c0bf8a..1645784b 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -260,8 +260,8 @@ class configSequence: self.parent.value[blocknumber] = newvalue self.markedPos += 1 - self.checkValues() - + self.checkValues() + #FIXME: dont call when press left/right self.parent.change() @@ -508,10 +508,11 @@ class configElement: if value == "": #print "value not found - using default" - if self.controlType == configSatlist: self.value = self.getIndexbyEntry(self.defaultValue) - else: + elif self.controlType == configSequence: + self.value = self.defaultValue[:] + else: self.value = self.defaultValue self.save() #add missing value to dict @@ -544,7 +545,7 @@ class configElement: def reload(self): self.loadData() def save(self): - if self.defaultValue != self.value or self.saveDefaults == True: + if (self.defaultValue != self.value) or (self.saveDefaults == True): configfile.setKey(self.configPath, self.datatoFile(self.controlType,self.value)) class configElement_nonSave(configElement): |
