diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/TimerEdit.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/Screens/TimerEdit.py b/lib/python/Screens/TimerEdit.py index ffb6f8f9..5233da9b 100644 --- a/lib/python/Screens/TimerEdit.py +++ b/lib/python/Screens/TimerEdit.py @@ -29,7 +29,7 @@ class TimerEditList(Screen): self["actions"] = ActionMap(["OkCancelActions", "ShortcutActions"], { "ok": self.openEdit, - "cancel": self.close, + "cancel": self.leave, "red": self.removeTimer, "green": self.addCurrentTimer }) @@ -100,3 +100,7 @@ class TimerEditList(Screen): self.fillTimerList() else: print "Timeredit aborted" + + def leave(self): + self.session.nav.RecordTimer.saveTimer() + self.close()
\ No newline at end of file |
