aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2011-04-11 18:01:00 +0200
committerFraxinas <andreas.frisch@multimedia-labs.de>2011-04-11 18:01:00 +0200
commit2d3dfd7793532da77fc3f2cdb2b5bc282703dc15 (patch)
tree9cc3e9920e4aae1d0b104ba0fd0f6fdf5f465afb /lib/python/Screens
parentd23552e65b55721d9288ed0789792b710db391a9 (diff)
downloadenigma2-2d3dfd7793532da77fc3f2cdb2b5bc282703dc15.tar.gz
enigma2-2d3dfd7793532da77fc3f2cdb2b5bc282703dc15.zip
[TaskView] fix cancel of waiting (not yet started) jobs
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/TaskView.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Screens/TaskView.py b/lib/python/Screens/TaskView.py
index 660fb276..6e1b752d 100644
--- a/lib/python/Screens/TaskView.py
+++ b/lib/python/Screens/TaskView.py
@@ -108,10 +108,10 @@ class JobView(InfoBarNotifications, Screen, ConfigListScreen):
self.close(False)
def abort(self):
- if self.job.status in (self.job.FINISHED, self.job.FAILED):
- self.close(False)
- if self["cancelable"].boolean == True:
+ if self.job.status == self.job.IN_PROGRESS and self["cancelable"].boolean == True:
self.job.cancel()
+ else:
+ self.close(False)
def performAfterEvent(self):
self["config"].hide()