Fix small --local-only bug that causes a crash when canceling settings

This commit is contained in:
Micah Lee 2018-04-23 21:16:10 -07:00
parent ac13790673
commit 86fa0215d8
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

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