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 4cf44444f7
commit 77bc7b9841

View File

@ -737,7 +737,7 @@ class SettingsDialog(QtWidgets.QDialog):
Cancel button 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)
sys.exit()
else: