We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9fe519 commit 8d79d81Copy full SHA for 8d79d81
1 file changed
dcoraid/gui/panel_uploads/widget_upload.py
@@ -473,9 +473,10 @@ def on_upload_finished(self, dataset_id):
473
def on_update_job_status(self):
474
"""Update UI with information from self.jobs (UploadJobList)"""
475
# Let everyone know when a job is done
476
- for job in self.jobs:
477
- if job.state == "done":
478
- self.on_upload_finished(job.dataset_id)
+ if self.jobs:
+ for job in self.jobs:
+ if job.state == "done":
479
+ self.on_upload_finished(job.dataset_id)
480
481
if not self.isVisible() or not self.jobs:
482
# Don't update the UI if nobody is looking anyway.
0 commit comments