mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Fix small --local-only bug that causes a crash when canceling settings
This commit is contained in:
parent
ac13790673
commit
86fa0215d8
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user