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>2021-12-15 13:56:38 +0300
committerHannah von Reth <hannah.vonreth@owncloud.com>2021-12-15 13:56:48 +0300
commit0f3212493920203884dda7f887ebd12d4a6209a0 (patch)
tree71f1843b261ced5a10329ae3a6bf0bd1a53896fe /src/gui/creds
parent418613e94887df123b4f30e2399e43dd5a5df34c (diff)
parent366b529f143e9dc970d93f7291cacd90d2df1212 (diff)
Merge remote-tracking branch 'origin/2.10'
Diffstat (limited to 'src/gui/creds')
-rw-r--r--src/gui/creds/httpcredentialsgui.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/creds/httpcredentialsgui.cpp b/src/gui/creds/httpcredentialsgui.cpp
index ef69dd8de..5667e5270 100644
--- a/src/gui/creds/httpcredentialsgui.cpp
+++ b/src/gui/creds/httpcredentialsgui.cpp
@@ -92,13 +92,12 @@ void HttpCredentialsGui::askFromUserAsync()
void HttpCredentialsGui::asyncAuthResult(OAuth::Result r, const QString &user,
const QString &token, const QString &refreshToken)
{
+ _asyncAuth.reset();
switch (r) {
case OAuth::NotSupported:
showDialog();
- _asyncAuth.reset(nullptr);
return;
case OAuth::Error:
- _asyncAuth.reset(nullptr);
emit asked();
return;
case OAuth::LoggedIn:
@@ -111,7 +110,6 @@ void HttpCredentialsGui::asyncAuthResult(OAuth::Result r, const QString &user,
_refreshToken = refreshToken;
_ready = true;
persist();
- _asyncAuth.reset(nullptr);
emit asked();
}