git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
295fb0f
)
ask before not saving settings
author
Felix Domke
<tmbinc@elitedvb.net>
Sun, 8 Oct 2006 22:35:42 +0000
(22:35 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Sun, 8 Oct 2006 22:35:42 +0000
(22:35 +0000)
lib/python/Screens/Setup.py
patch
|
blob
|
history
diff --git
a/lib/python/Screens/Setup.py
b/lib/python/Screens/Setup.py
index 09984bd8e518e810db5c73a4f5b638745f570ddc..48c85c8e7bed9b8e47a12fd23aae629921b8533b 100644
(file)
--- a/
lib/python/Screens/Setup.py
+++ b/
lib/python/Screens/Setup.py
@@
-1,4
+1,5
@@
from Screen import Screen
from Screen import Screen
+from MessageBox import MessageBox
from Components.ActionMap import NumberActionMap
from Components.config import config, KEY_LEFT, KEY_RIGHT, KEY_OK
from Components.ConfigList import ConfigList, ConfigListScreen
from Components.ActionMap import NumberActionMap
from Components.config import config, KEY_LEFT, KEY_RIGHT, KEY_OK
from Components.ConfigList import ConfigList, ConfigListScreen
@@
-129,13
+130,20
@@
class Setup(ConfigListScreen, Screen):
for x in self["config"].list:
x[1].save()
self.close()
for x in self["config"].list:
x[1].save()
self.close()
+
+ def cancelConfirm(self, result):
+ if not result:
+ return
- def keyCancel(self):
print "cancel requested"
print "cancel requested"
+
for x in self["config"].list:
x[1].cancel()
self.close()
for x in self["config"].list:
x[1].cancel()
self.close()
-
+
+ def keyCancel(self):
+ self.session.openWithCallback(self.cancelConfirm, MessageBox, _("Really close without saving settings?"))
+
def getSetupTitle(id):
xmldata = setupdom.childNodes[0].childNodes
for x in elementsWithTag(xmldata, "setup"):
def getSetupTitle(id):
xmldata = setupdom.childNodes[0].childNodes
for x in elementsWithTag(xmldata, "setup"):