Emit the files_updated signal when deleting files. This will ensure that the share button gets disabled when there are no files in the list

This commit is contained in:
Miguel Jacq 2017-12-27 11:37:06 +11:00
parent 5c390f1bd9
commit 96d758e8e1
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -229,6 +229,7 @@ class FileSelection(QtWidgets.QVBoxLayout):
itemrow = self.file_list.row(item)
self.file_list.filenames.pop(itemrow)
self.file_list.takeItem(itemrow)
self.file_list.files_updated.emit()
self.update()
def server_started(self):