more repairs to OAuth signal/slot connection

This commit is contained in:
Stephen Birarda 2014-05-02 16:58:06 -07:00
parent 2dacc81960
commit 1f35c07420

View file

@ -85,10 +85,10 @@ void OAuthWebViewHandler::displayWebviewForAuthorizationURL(const QUrl& authoriz
connect(_activeWebView->page()->networkAccessManager(), &QNetworkAccessManager::sslErrors,
this, &OAuthWebViewHandler::handleSSLErrors);
connect(_activeWebView, &QWebView::loadFinished, this, &OAuthWebViewHandler::handleLoadFinished);
connect(_activeWebView.data(), &QWebView::loadFinished, this, &OAuthWebViewHandler::handleLoadFinished);
// connect to the destroyed signal so after the web view closes we can start a timer
connect(_activeWebView, SIGNAL(destroyed(QObject*)), this, SLOT(handleWebViewDestroyed(QObject*)));
connect(_activeWebView.data(), &QWebView::destroyed, this, &OAuthWebViewHandler::handleWebViewDestroyed);
}
}