Skip to content

Commit

Permalink
WIP: Clear error list after displaying it once.
Browse files Browse the repository at this point in the history
Fix for #6448 and #6487.

Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Aug 4, 2024
1 parent 6dbf41e commit 044ac46
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gui/connectionvalidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ void ConnectionValidator::slotAuthFailed(QNetworkReply *reply)
}
}

_errors << tr("Test error");
stat = SslError;
reportResult(stat);
}

Expand Down Expand Up @@ -331,9 +333,10 @@ void ConnectionValidator::reportResult(Status status)
{
emit connectionResult(status, _errors);

// notify user of errors
// notify user of errors - TODO: only show the new ones
if (!_errors.isEmpty() && _previousErrors != _errors) {
showSystrayErrorMessage();
showSystrayErrorMessage();
_errors.clear();
}

deleteLater();
Expand Down

0 comments on commit 044ac46

Please sign in to comment.