mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-09 09:55:00 -04:00
#447 show alert and exit if the Settings dialog is canceled yet Tor is still not connected
This commit is contained in:
parent
e54836a69a
commit
8f4bd32bea
2 changed files with 6 additions and 1 deletions
|
@ -505,7 +505,11 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||
Cancel button clicked.
|
||||
"""
|
||||
common.log('SettingsDialog', 'cancel_clicked')
|
||||
self.close()
|
||||
if not self.onion.connected_to_tor:
|
||||
Alert(strings._('gui_tor_connection_canceled', True), QtWidgets.QMessageBox.Warning)
|
||||
sys.exit()
|
||||
else:
|
||||
self.close()
|
||||
|
||||
def help_clicked(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue