Closing the GUI window causes any current download to stop immediately (fixes #262)

This commit is contained in:
Micah Lee 2016-04-10 17:43:37 -07:00
parent f5496ba20c
commit 7b8e9e1e6f
2 changed files with 22 additions and 0 deletions

View file

@ -243,6 +243,9 @@ class OnionShareGui(QtWidgets.QMainWindow):
"""
self.status_bar.clearMessage()
def closeEvent(self, e):
self.stop_server()
def alert(msg, icon=QtWidgets.QMessageBox.NoIcon):
"""