output SSL errors from OAuthWebViewHandler

This commit is contained in:
Stephen Birarda 2014-05-01 11:13:46 -07:00
parent 56c24ce8b7
commit d9033a8074
2 changed files with 9 additions and 0 deletions

View file

@ -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<QSslError>& errorList) {
qDebug() << "SSL Errors:" << errorList;
}

View file

@ -25,6 +25,8 @@ public:
public slots:
void displayWebviewForAuthorizationURL(const QUrl& authorizationURL);
private slots:
void handleSSLErrors(QNetworkReply* networkReply, const QList<QSslError>& errorList);
private:
QWebView* _activeWebView;
};