From 4d0ef50face4b76e0ebd07a8cfc2e8e1ba02d6b0 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):