If credentials are ok, do not fetch them again from store.

This commit is contained in:
Klaas Freitag 2013-01-21 13:32:52 +01:00
parent 381aa701ce
commit 915764cc52

View file

@ -128,6 +128,12 @@ void CredentialStore::fetchCredentials()
break;
}
case CredentialStore::KeyChain: {
// If the credentials are here already, return.
if( _state == Ok ) {
emit(fetchCredentialsFinished(true));
return;
}
// otherwise fetch asynchronious.
#ifdef WITH_QTKEYCHAIN
_state = AsyncFetching;
if( !_user.isEmpty() ) {