Skip to content

Commit 267e82a

Browse files
committed
fix: avoid error in upload tab when no jobs are present
1 parent c47ce98 commit 267e82a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
0.14.2
2+
- fix: avoid error in upload tab when no jobs are present
23
- enh: add logging tab in GUI
34
- docs: improve doc strings
45
- ref: improve logging

dcoraid/gui/upload/widget_upload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def on_upload_finished(self, dataset_id):
440440
@QtCore.pyqtSlot()
441441
def update_job_status(self):
442442
"""Update UI with information from self.jobs (UploadJobList)"""
443-
if not self.isVisible():
443+
if not self.isVisible() or not self.jobs:
444444
return
445445
# disable updates
446446
self.setUpdatesEnabled(False)

0 commit comments

Comments
 (0)