aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webpage.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-26 00:41:09 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-26 00:41:09 +0100
commit1bc3c311551d53759ffdfb11904c45f1cc2f91ce (patch)
treeca22cf2d17611dfe3aa0cfbf3ac825ecb014b9f4 /src/webengine/webpage.cpp
parentConfiguration class rework (diff)
downloadsmolbote-1bc3c311551d53759ffdfb11904c45f1cc2f91ce.tar.xz
UrlLineEdit rework
- moved UrlLineEdit to src/addressbar - added UrlLineEdit::connectWebView - removed UrlLineEdit::pageAction - UrlLineEdit restores the text format when losing focus - Split off completer code into Completer class - WebPage now displays a warning message box instead on certificate errors
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;
}