From 96d758e8e1dfc77ad5ecce3964c5728c87f962fe Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Wed, 27 Dec 2017 11:37:06 +1100 Subject: [PATCH] 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 --- onionshare_gui/file_selection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/onionshare_gui/file_selection.py b/onionshare_gui/file_selection.py index 54321370..da03d24d 100644 --- a/onionshare_gui/file_selection.py +++ b/onionshare_gui/file_selection.py @@ -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):