diff options
author | Tobias Fella <fella@posteo.de> | 2022-05-29 22:21:53 +0200 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2022-05-29 22:21:53 +0200 |
commit | 9c436d314f6b082287fb129ea1fcf960313e5c27 (patch) | |
tree | 0b70e8d71dbf210da870431c0051968f9b00a57e | |
parent | 283f95e429917bd0c7fb5982ceac1602eb2af0b9 (diff) | |
download | libquotient-9c436d314f6b082287fb129ea1fcf960313e5c27.tar.gz libquotient-9c436d314f6b082287fb129ea1fcf960313e5c27.zip |
Also reemit resolveError
-rw-r--r-- | lib/accountregistry.cpp | 3 | ||||
-rw-r--r-- | lib/accountregistry.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/accountregistry.cpp b/lib/accountregistry.cpp index 5322ee80..9b148b51 100644 --- a/lib/accountregistry.cpp +++ b/lib/accountregistry.cpp @@ -102,6 +102,9 @@ void AccountRegistry::invokeLogin() connect(connection, &Connection::loginError, this, [this, connection](const QString& error, const QString& details) { emit loginError(connection, error, details); }); + connect(connection, &Connection::resolveError, this, [this, connection](QString error) { + emit resolveError(connection, error); + }); connection->assumeIdentity(account.userId(), accessTokenLoadingJob->binaryData(), account.deviceId()); }); } diff --git a/lib/accountregistry.h b/lib/accountregistry.h index 99827b73..38cfe6c6 100644 --- a/lib/accountregistry.h +++ b/lib/accountregistry.h @@ -78,6 +78,8 @@ Q_SIGNALS: void keychainError(QKeychain::Error error); void loginError(Connection* connection, QString message, QString details); + void resolveError(Connection* connection, QString error); + private: QKeychain::ReadPasswordJob* loadAccessTokenFromKeychain(const QString &userId); QStringList m_accountsLoading; |