Commit 92311b3a authored by Laurent Montel's avatar Laurent Montel 😁

Not necessary to check before delete it

parent efd14920
......@@ -100,9 +100,7 @@ public:
bool certificateError(const QWebEngineCertificateError &err) override
{
if (mLastError) {
delete mLastError;
}
delete mLastError;
mLastError = new QWebEngineCertificateError(err.error(), err.url(), err.isOverridable(), err.errorDescription());
Q_EMIT sslError({});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment