AccountState: reset _waitingForNewCredentials when signin in
authorOlivier Goffart <ogoffart@woboq.com>
Fri, 21 Jul 2017 13:54:47 +0000 (15:54 +0200)
committerOlivier Goffart <olivier@woboq.com>
Wed, 26 Jul 2017 12:58:28 +0000 (14:58 +0200)
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

src/gui/accountstate.cpp

index 09300b1abd241926358bda210e06948ca27f1c0d..63316f6d2dc77c1b0274171821700b3950495e4b 100644 (file)
@@ -154,6 +154,7 @@ void AccountState::signOutByUi()
 void AccountState::signIn()
 {
     if (_state == SignedOut) {
+        _waitingForNewCredentials = false;
         setState(Disconnected);
     }
 }