From 9c436d314f6b082287fb129ea1fcf960313e5c27 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 29 May 2022 22:21:53 +0200 Subject: Also reemit resolveError --- lib/accountregistry.cpp | 3 +++ lib/accountregistry.h | 2 ++ 2 files changed, 5 insertions(+) (limited to 'lib') 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; -- cgit v1.2.3