Fix changing the password when the password manager is not available

Leaving the state in NoKeychainBackend would break any further attempt
to get the password because CredentialStore::canTryAgain would return
false.
This commit is contained in:
Olivier Goffart 2013-06-18 13:31:45 +02:00
parent 60f1c65a48
commit 969757199e

View file

@ -360,9 +360,9 @@ void CredentialStore::slotKeyChainWriteFinished( QKeychain::Job *job )
qDebug() << "Error with keychain: " << pwdJob->errorString();
if( err == NoBackendAvailable || err == NotImplemented ||
pwdJob->errorString().contains(QLatin1String("Could not open wallet"))) {
_state = NoKeychainBackend;
_type = Settings;
saveCredentials();
_state = NoKeychainBackend;
} else {
_state = Error;
}