do not restart previous tv service when leave standby
[enigma2.git] / lib / python / Screens / MessageBox.py
index 33d51b24212731d8058ee422e08a7bf0092de512..b16b8730d3320dfdb6b1411b81a85d107063805d 100644 (file)
@@ -67,15 +67,16 @@ class MessageBox(Screen):
                self.timer.start(1000)
 
        def timerTick(self):
-               self.timeout -= 1
-               if self.origTitle is None:
-                       self.origTitle = self.instance.getTitle()
-               self.setTitle(self.origTitle + " (" + str(self.timeout) + ")")
-               if self.timeout == 0:
-                       self.timer.stop()
-                       self.timerRunning = False
-                       self.timeoutCallback()
-                       
+               if self.execing:
+                       self.timeout -= 1
+                       if self.origTitle is None:
+                               self.origTitle = self.instance.getTitle()
+                       self.setTitle(self.origTitle + " (" + str(self.timeout) + ")")
+                       if self.timeout == 0:
+                               self.timer.stop()
+                               self.timerRunning = False
+                               self.timeoutCallback()
+
        def timeoutCallback(self):
                print "Timeout!"
                self.ok()