diff --git a/CHANGELOG b/CHANGELOG index cd5ebe8..9c03cc9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/dcoraid/gui/upload/widget_upload.py b/dcoraid/gui/upload/widget_upload.py index 8f02d91..5936c9c 100644 --- a/dcoraid/gui/upload/widget_upload.py +++ b/dcoraid/gui/upload/widget_upload.py @@ -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)