From 9da3e2d8b019ce0429fd5d3b98552b9815e16a6f Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 20 Feb 2018 14:49:17 +1100 Subject: [PATCH] Fix updating primary action and re-enabling drag-n-drop when a share is canceled --- onionshare_gui/onionshare_gui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py index 50f920eb..7ceba0dd 100644 --- a/onionshare_gui/onionshare_gui.py +++ b/onionshare_gui/onionshare_gui.py @@ -79,6 +79,8 @@ class OnionShareGui(QtWidgets.QMainWindow): self.server_status.server_stopped.connect(self.update_server_status_indicator) self.server_status.server_stopped.connect(self.update_primary_action) self.server_status.server_canceled.connect(self.cancel_server) + self.server_status.server_canceled.connect(self.file_selection.server_stopped) + self.server_status.server_canceled.connect(self.update_primary_action) self.start_server_finished.connect(self.clear_message) self.start_server_finished.connect(self.server_status.start_server_finished) self.start_server_finished.connect(self.update_server_status_indicator)