Compare commits

..
2 Commits
2 changed files with 8 additions and 4 deletions

No files matched your search

+4 -1
View File
@@ -1,6 +1,9 @@
#include "enhancedwebpage.h"
#include <QWebEngineCertificateError>
#include <plog/Log.h>
bool EnhancedWebPage::certificateError(const QWebEngineCertificateError &certificateError) {
return true;
LOGI << "An error occurred during certificate verification for" << certificateError.url() << "; " << certificateError.errorDescription();
return certificateError.deferred();
};
+4 -3
View File
@@ -3,9 +3,10 @@
#include <QtWebEngineWidgets/qwebenginepage.h>
class EnhancedWebPage : public QWebEnginePage {
protected:
bool certificateError(const QWebEngineCertificateError &certificateError);
class EnhancedWebPage : public QWebEnginePage
{
protected:
bool certificateError(const QWebEngineCertificateError &certificateError) override;
};
#endif // !ECHANCEDWEBPAG