Add ability to abort but not exit SettingsDialog/reconnect to Tor, on invalid settings. Do this for invalid bridges

This commit is contained in:
Miguel Jacq 2018-02-25 19:42:38 +11:00
parent 0dfbb38acf
commit fce26c4286
No known key found for this signature in database
GPG key ID: 5418373DFF79BA19

View file

@ -660,6 +660,7 @@ class SettingsDialog(QtWidgets.QDialog):
common.log('SettingsDialog', 'save_clicked')
settings = self.settings_from_fields()
if settings:
settings.save()
# If Tor isn't connected, or if Tor settings have changed, Reinitialize
@ -839,6 +840,7 @@ class SettingsDialog(QtWidgets.QDialog):
else:
Alert(strings._('gui_settings_tor_bridges_invalid', True))
settings.set('no_bridges', True)
return False
return settings