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
This commit is contained in:
Olivier Goffart 2017-07-21 15:54:47 +02:00 committed by Olivier Goffart
parent cdce7f2044
commit 41ed603abf

View file

@ -154,6 +154,7 @@ void AccountState::signOutByUi()
void AccountState::signIn()
{
if (_state == SignedOut) {
_waitingForNewCredentials = false;
setState(Disconnected);
}
}