aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webengine/webpage.cpp')
-rw-r--r--src/webengine/webpage.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/webengine/webpage.cpp b/src/webengine/webpage.cpp
index b2f8c43..7a2a5e7 100644
--- a/src/webengine/webpage.cpp
+++ b/src/webengine/webpage.cpp
@@ -8,6 +8,7 @@
#include "webpage.h"
+#include <QMessageBox>
#include <QWebEngineFullScreenRequest>
WebPage::WebPage(QWebEngineProfile *profile, QObject *parent)
@@ -25,6 +26,10 @@ WebPage::WebPage(QWebEngineProfile *profile, QObject *parent)
bool WebPage::certificateError(const QWebEngineCertificateError &certificateError)
{
- emit certificateErrorMessage(certificateError.errorDescription());
- return certificateError.isOverridable();
+ auto resp = QMessageBox::warning(nullptr,
+ tr("SSL error"),
+ tr("An SSL error has occurred:<br>%1").arg(certificateError.errorDescription()),
+ QMessageBox::Ignore, QMessageBox::Abort);
+
+ return resp == QMessageBox::Ignore;
}