From d9033a8074a1fb3f4a1c0cec021440a2bb53e441 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 1 May 2014 11:13:46 -0700 Subject: [PATCH] output SSL errors from OAuthWebViewHandler --- interface/src/ui/OAuthWebViewHandler.cpp | 7 +++++++ interface/src/ui/OAuthWebViewHandler.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/interface/src/ui/OAuthWebViewHandler.cpp b/interface/src/ui/OAuthWebViewHandler.cpp index bd33482d41..222edcb0aa 100644 --- a/interface/src/ui/OAuthWebViewHandler.cpp +++ b/interface/src/ui/OAuthWebViewHandler.cpp @@ -32,5 +32,12 @@ void OAuthWebViewHandler::displayWebviewForAuthorizationURL(const QUrl& authoriz _activeWebView->setWindowFlags(Qt::WindowStaysOnTopHint); _activeWebView->load(authorizationURL); _activeWebView->show(); + + connect(_activeWebView->page()->networkAccessManager(), &QNetworkAccessManager::sslErrors, + this, &OAuthWebViewHandler::handleSSLErrors); } } + +void OAuthWebViewHandler::handleSSLErrors(QNetworkReply* networkReply, const QList& errorList) { + qDebug() << "SSL Errors:" << errorList; +} diff --git a/interface/src/ui/OAuthWebViewHandler.h b/interface/src/ui/OAuthWebViewHandler.h index 6f8d140d87..8a9fb8520f 100644 --- a/interface/src/ui/OAuthWebViewHandler.h +++ b/interface/src/ui/OAuthWebViewHandler.h @@ -25,6 +25,8 @@ public: public slots: void displayWebviewForAuthorizationURL(const QUrl& authorizationURL); +private slots: + void handleSSLErrors(QNetworkReply* networkReply, const QList& errorList); private: QWebView* _activeWebView; };