diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-12-15 13:56:38 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-12-15 13:56:48 +0300 |
commit | 0f3212493920203884dda7f887ebd12d4a6209a0 (patch) | |
tree | 71f1843b261ced5a10329ae3a6bf0bd1a53896fe /src/gui/creds | |
parent | 418613e94887df123b4f30e2399e43dd5a5df34c (diff) | |
parent | 366b529f143e9dc970d93f7291cacd90d2df1212 (diff) |
Merge remote-tracking branch 'origin/2.10'
Diffstat (limited to 'src/gui/creds')
-rw-r--r-- | src/gui/creds/httpcredentialsgui.cpp | 4 |
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(); } |