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:
d23552e
)
[TaskView] fix cancel of waiting (not yet started) jobs
author
Fraxinas
<
[email protected]
>
Mon, 11 Apr 2011 16:01:00 +0000
(18:01 +0200)
committer
Fraxinas
<
[email protected]
>
Mon, 11 Apr 2011 16:01:00 +0000
(18:01 +0200)
lib/python/Screens/TaskView.py
patch
|
blob
|
history
diff --git
a/lib/python/Screens/TaskView.py
b/lib/python/Screens/TaskView.py
index 660fb2769a16b610e005c73b4916af537d534d2a..6e1b752dc57a2b9a6aabac18c524fce764d6c144 100644
(file)
--- 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()