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 edd5d4f78c
commit 10581b1421
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

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: