don't display confirmation when there is nothing to do
authorFelix Domke <tmbinc@elitedvb.net>
Wed, 7 Nov 2007 02:23:42 +0000 (02:23 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Wed, 7 Nov 2007 02:23:42 +0000 (02:23 +0000)
lib/python/Screens/TimerEdit.py

index 3497fcb..8d8d9ac 100644 (file)
@@ -130,10 +130,12 @@ class TimerEditList(Screen):
                if delete:
                        self.session.nav.RecordTimer.cleanup()
                        self.refill()
-       
+
        def removeTimerQuestion(self):
+               if not self["timerlist"].getCurrent():
+                       return
                self.session.openWithCallback(self.removeTimer, MessageBox, _("Really delete this timer?"))
-               
+
        def removeTimer(self, result):
                if not result:
                        return