X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2Fconfig.py;h=d7506e31a275a0fb9a03a62b7cfabdd12b840df4;hp=471b59ec55f5c21396461638ad41db74abe2b02a;hb=3cc01c8deb6aa80db50ba6c4bc6f79e0a7a9bbd9;hpb=c430cd50ce7bc9e0a91bccb558e54dafc8d5ef75 diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 471b59e..d7506e3 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -29,6 +29,7 @@ from time import localtime, strftime class ConfigElement(object): def __init__(self): self.saved_value = None + self.save_forced = False self.last_value = None self.save_disabled = False self.__notifiers = None @@ -83,7 +84,7 @@ class ConfigElement(object): # you need to override this if str(self.value) doesn't work def save(self): - if self.save_disabled or self.value == self.default: + if self.save_disabled or (self.value == self.default and not self.save_forced): self.saved_value = None else: self.saved_value = self.tostring(self.value)