diff options
author | Christian Kamm <mail@ckamm.de> | 2017-11-05 21:50:09 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2018-01-04 16:30:24 +0300 |
commit | ab9d6285c6b2aa118c39006d8d1b5c091b848a1a (patch) | |
tree | 04273e8cf137a2a17053e0f60a01ab4f4f868542 /src/gui/accountstate.cpp | |
parent | 6e445033c7dba3642bc190f6f26da48b7462beb3 (diff) |
Proxy: Hostname validation and reconnection on setting change
Where 'validation' currently just means "check whether it's empty".
Code adapted from wiggiBe's original PR #6140
Diffstat (limited to 'src/gui/accountstate.cpp')
-rw-r--r-- | src/gui/accountstate.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp index 0b19f3f88..a4b44b6a7 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -151,6 +151,13 @@ void AccountState::signOutByUi() setState(SignedOut); } +void AccountState::freshConnectionAttempt() +{ + if (isConnected()) + setState(Disconnected); + checkConnectivity(); +} + void AccountState::signIn() { if (_state == SignedOut) { |