Bugfix, settings was throwing an error and quitting when Tor was authenticated, not when it was not authenticated

This commit is contained in:
Micah Lee 2018-04-25 09:13:05 -07:00
parent 4d4e9c6800
commit 1ad2afb859

View File

@ -758,7 +758,7 @@ class SettingsDialog(QtWidgets.QDialog):
Cancel button clicked.
"""
self.common.log('SettingsDialog', 'cancel_clicked')
if not self.local_only and self.onion.is_authenticated():
if not self.local_only and not self.onion.is_authenticated():
Alert(self.common, strings._('gui_tor_connection_canceled', True), QtWidgets.QMessageBox.Warning)
sys.exit()
else: