Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-03-24 13:17:03 +0300
committerHannah von Reth <vonreth@kde.org>2022-03-24 14:01:02 +0300
commit7fa1f562499c49fea602ac4ea20bf4c032e1d022 (patch)
tree7b4e9f553a155f5b4bfefa91f027130e8896010a /src/gui/accountstate.cpp
parent0a78f713ca14f8ac702f513694c3f1cdd3c463c8 (diff)
Fix basic auth logout
Fixes: #9545
Diffstat (limited to 'src/gui/accountstate.cpp')
-rw-r--r--src/gui/accountstate.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp
index b04181a97..608d386d3 100644
--- a/src/gui/accountstate.cpp
+++ b/src/gui/accountstate.cpp
@@ -115,6 +115,10 @@ AccountState::AccountState(AccountPtr account)
checkConnectivity(false);
},
Qt::QueuedConnection);
+
+ connect(account->credentials(), &AbstractCredentials::requestLogout, this, [this] {
+ _state = State::SignedOut;
+ });
}
AccountState::~AccountState()