From 86fa0215d8554b40bf84648ed209cf159b94555d Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Mon, 23 Apr 2018 21:16:10 -0700 Subject: [PATCH] Fix small --local-only bug that causes a crash when canceling settings --- onionshare_gui/settings_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionshare_gui/settings_dialog.py b/onionshare_gui/settings_dialog.py index 94aa8342..07353153 100644 --- a/onionshare_gui/settings_dialog.py +++ b/onionshare_gui/settings_dialog.py @@ -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: