From 8c9f6a822fca90779b121670479f5171bd673aca Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 1 Aug 2012 18:46:43 +0200 Subject: Fix urlbar widget show --- src/webtab/webpage.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/webtab/webpage.cpp') diff --git a/src/webtab/webpage.cpp b/src/webtab/webpage.cpp index c2b6bdde..385a6ac3 100644 --- a/src/webtab/webpage.cpp +++ b/src/webtab/webpage.cpp @@ -47,6 +47,7 @@ #include "websnap.h" #include "webtab.h" #include "sslinfodialog.h" +#include "sslwidget.h" #include "searchengine.h" #include "webwindow.h" @@ -727,3 +728,20 @@ bool WebPage::hasSslValid() const return true; } + + +void WebPage::showSSLInfo(QPoint pos) +{ + if (mainFrame()->url().scheme() == QL1S("https")) + { + SSLWidget *widget = new SSLWidget(mainFrame()->url(), _sslInfo, view()); + widget->showAt(pos); + } + else + { + KMessageBox::information(view(), + i18n("This site does not contain SSL information."), + i18nc("Secure Sockets Layer", "SSL") + ); + } +} -- cgit v1.2.1