Merge pull request #756 from mig5/reset_uploads_on_share_restart

Close the upload widget on reset so that it properly disappears from the Uploads window
This commit is contained in:
Micah Lee 2018-09-18 17:58:25 -07:00 committed by GitHub
commit 3743a1b0ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,6 +294,7 @@ class Uploads(QtWidgets.QScrollArea):
"""
self.common.log('Uploads', 'reset')
for upload in self.uploads.values():
upload.close()
self.uploads_layout.removeWidget(upload)
self.uploads = {}