From e57556138b75a1e579ea0a79db6cd89ef9286632 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Sun, 4 Aug 2024 20:38:11 +0200 Subject: [PATCH] Clean list of connection errors when account state changes. Signed-off-by: Camila Ayres --- src/gui/accountstate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp index d1a0957791936..88604350debc5 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -130,8 +130,9 @@ void AccountState::setState(State state) emit isConnectedChanged(); } if (_state == Connected) { + _connectionErrors.clear(); resetRetryCount(); - } + } } // might not have changed but the underlying _connectionErrors might have @@ -487,6 +488,7 @@ void AccountState::slotCredentialsAsked(AbstractCredentials *credentials) // connection validation, even if it's currently running. _connectionValidator->deleteLater(); _connectionValidator = nullptr; + _connectionErrors.clear(); } checkConnectivity();