aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/config.py
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-03-11 08:49:47 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-03-11 08:49:47 +0100
commit8c68c9fd6273e5318755e42a9f650d850daebb94 (patch)
treec4352a9b3b154a64e6fe61ed67753d683363ac95 /lib/python/Components/config.py
parent0ffeb4cf114a6706ba629112c070e3d94da98793 (diff)
parent4531ea135c84d78d96d66a08b67f1f5e09475c55 (diff)
downloadenigma2-8c68c9fd6273e5318755e42a9f650d850daebb94.tar.gz
enigma2-8c68c9fd6273e5318755e42a9f650d850daebb94.zip
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Components/config.py')
-rwxr-xr-xlib/python/Components/config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 4cc40633..24d39cba 100755
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -1029,6 +1029,13 @@ class ConfigNumber(ConfigText):
value = property(getValue, setValue)
_value = property(getValue, setValue)
+ def isChanged(self):
+ sv = self.saved_value
+ strv = self.tostring(self.value)
+ if sv is None and strv == self.default:
+ return False
+ return strv != sv
+
def conform(self):
pos = len(self.text) - self.marked_pos
self.text = self.text.lstrip("0")