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 коммит произвёл Olivier Goffart
Родитель cdce7f2044
Коммит 41ed603abf
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

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