diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2008-11-10 10:18:28 +0100 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2008-11-10 10:18:28 +0100 |
| commit | 4c2cba9ccb6f754aac9378e2fc2c7b546e6d589c (patch) | |
| tree | 1ae11748c8a14720c98fb666ffaf8615fd5ff038 /lib/python/Components/config.py | |
| parent | acbad24424304473f967b678bd9deb51f73acf27 (diff) | |
| parent | 752d9da39e993387fefbd9ccbf39e5cb8f85735e (diff) | |
| download | enigma2-4c2cba9ccb6f754aac9378e2fc2c7b546e6d589c.tar.gz enigma2-4c2cba9ccb6f754aac9378e2fc2c7b546e6d589c.zip | |
Merge branch 'master' of fraxinas@git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Components/config.py')
| -rwxr-xr-x | lib/python/Components/config.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index c21a9192..4ddcabec 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -34,6 +34,7 @@ class ConfigElement(object): self.save_disabled = False self.notifiers = [] self.enabled = True + self.callNotifiersOnSaveAndCancel = False # you need to override this to do input validation def setValue(self, value): @@ -66,9 +67,13 @@ class ConfigElement(object): self.saved_value = None else: self.saved_value = self.tostring(self.value) + if self.callNotifiersOnSaveAndCancel: + self.changed() def cancel(self): self.load() + if self.callNotifiersOnSaveAndCancel: + self.changed() def isChanged(self): sv = self.saved_value |
