diff --git a/src/gui/wizard/webview.cpp b/src/gui/wizard/webview.cpp index 26c9e2107c689..d9cd20922935b 100644 --- a/src/gui/wizard/webview.cpp +++ b/src/gui/wizard/webview.cpp @@ -218,8 +218,11 @@ bool WebEnginePage::certificateError(const QWebEngineCertificateError &certifica return ret == QMessageBox::Yes; } -bool WebEnginePage::acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType /*type*/, bool /*isMainFrame*/) +bool WebEnginePage::acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame) { + Q_UNUSED(type); + Q_UNUSED(isMainFrame); + if (_enforceHttps && url.scheme() != QStringLiteral("https")) { QMessageBox::warning(nullptr, "Security warning", "Can not follow non https link on a https website. This might be a security issue. Please contact your administrator"); return false;