aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/TaskView.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Screens/TaskView.py')
-rw-r--r--lib/python/Screens/TaskView.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Screens/TaskView.py b/lib/python/Screens/TaskView.py
index fce0ac37..790e9bc6 100644
--- a/lib/python/Screens/TaskView.py
+++ b/lib/python/Screens/TaskView.py
@@ -33,7 +33,8 @@ class JobView(InfoBarNotifications, Screen):
self.state_changed()
def windowHide(self):
- self.job.state_changed.remove(self.state_changed)
+ if len(self.job.state_changed) > 0:
+ self.job.state_changed.remove(self.state_changed)
def state_changed(self):
j = self.job