diff --git a/src/tab_details.py b/src/tab_details.py index ff065378f..469c3ced4 100644 --- a/src/tab_details.py +++ b/src/tab_details.py @@ -153,10 +153,16 @@ class DetailsTabManager(object): self.total_downloaded.set_text('%s (%s)' % \ (common.fsize(state["total_done"]), common.fsize(state["total_payload_download"]))) - self.total_uploaded.set_text('%s (%s)' % \ - (common.fsize(self.manager.unique_IDs[unique_id].uploaded_memory+\ + try: + self.total_uploaded.set_text('%s (%s)' % \ + (common.fsize(self.manager.unique_IDs[unique_id].initial_uploaded_memory+\ state["total_payload_upload"]), common.fsize(state["total_payload_upload"]))) + except AttributeError: + self.total_uploaded.set_text('%s (%s)' % \ + (common.fsize(self.manager.unique_IDs[unique_id].uploaded_memory+\ + state["total_payload_upload"]), + common.fsize(state["total_payload_upload"]))) self.download_speed.set_text(common.fspeed(state["download_rate"])) self.upload_speed.set_text(common.fspeed(state["upload_rate"])) self.seeders.set_text(common.fseed(state))