From: Olivier Goffart Date: Fri, 21 Jul 2017 13:54:47 +0000 (+0200) Subject: AccountState: reset _waitingForNewCredentials when signin in X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~704^2^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=41ed603abf62fa70d0b0b62df0e1e20604893c3d;p=nextcloud-desktop.git AccountState: reset _waitingForNewCredentials when signin in Just to force the logic to re-ask the credenticals, in case we were already asking them when singin off. Issue: https://github.com/owncloud/client/issues/5893#issuecomment-316949686 --- diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp index 09300b1ab..63316f6d2 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -154,6 +154,7 @@ void AccountState::signOutByUi() void AccountState::signIn() { if (_state == SignedOut) { + _waitingForNewCredentials = false; setState(Disconnected); } }