diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-03-24 15:16:24 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-03-24 15:16:24 +0300 |
commit | 45cdd151c657af3fd1cf62d218b672bc8009b78a (patch) | |
tree | 5a6ebe717811a8123e4a5764bd77124915e16f0c /src/gui/accountstate.cpp | |
parent | 41c303ef0de84e5a5438683fa80ebb4e4a42e2c2 (diff) | |
parent | 7fa1f562499c49fea602ac4ea20bf4c032e1d022 (diff) |
Merge remote-tracking branch 'origin/2.10'
Diffstat (limited to 'src/gui/accountstate.cpp')
-rw-r--r-- | src/gui/accountstate.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp index d1e30c876..80b32cc16 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -97,6 +97,10 @@ AccountState::AccountState(AccountPtr account) checkConnectivity(false); }, Qt::QueuedConnection); + + connect(account->credentials(), &AbstractCredentials::requestLogout, this, [this] { + _state = State::SignedOut; + }); } AccountState::~AccountState() |