Skip to content

Commit

Permalink
fix: avoid error in upload tab when no jobs are present
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed May 23, 2024
1 parent c47ce98 commit 267e82a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
0.14.2
- fix: avoid error in upload tab when no jobs are present
- enh: add logging tab in GUI
- docs: improve doc strings
- ref: improve logging
Expand Down
2 changes: 1 addition & 1 deletion dcoraid/gui/upload/widget_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def on_upload_finished(self, dataset_id):
@QtCore.pyqtSlot()
def update_job_status(self):
"""Update UI with information from self.jobs (UploadJobList)"""
if not self.isVisible():
if not self.isVisible() or not self.jobs:
return
# disable updates
self.setUpdatesEnabled(False)
Expand Down

0 comments on commit 267e82a

Please sign in to comment.