Compare commits

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

No files matched your search

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