Skip to content

Commit

Permalink
Shib: fix broken signal/slot connections
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoffart committed Jan 26, 2015
1 parent 3169833 commit b0dbb49
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/gui/wizard/owncloudshibbolethcredspage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ void OwncloudShibbolethCredsPage::setupBrowser()
qnam->setCookieJar(jar);

_browser = new ShibbolethWebView(account);
connect(_browser, SIGNAL(shibbolethCookieReceived(const QNetworkCookie&, AccountPtr)),
this, SLOT(slotShibbolethCookieReceived(const QNetworkCookie&, AccountPtr)), Qt::QueuedConnection);
connect(_browser, SIGNAL(shibbolethCookieReceived(const QNetworkCookie&)),
this, SLOT(slotShibbolethCookieReceived(const QNetworkCookie&)), Qt::QueuedConnection);
connect(_browser, SIGNAL(rejected()),
this, SLOT(slotBrowserRejected()));

Expand Down Expand Up @@ -95,7 +95,7 @@ AbstractCredentials* OwncloudShibbolethCredsPage::getCredentials() const
return new ShibbolethCredentials(_cookie);
}

void OwncloudShibbolethCredsPage::slotShibbolethCookieReceived(const QNetworkCookie &cookie, AccountPtr)
void OwncloudShibbolethCredsPage::slotShibbolethCookieReceived(const QNetworkCookie &cookie)
{
_cookie = cookie;
emit connectToOCUrl(field("OCUrl").toString().simplified());
Expand Down
2 changes: 1 addition & 1 deletion src/gui/wizard/owncloudshibbolethcredspage.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Q_SLOTS:
void setVisible(bool visible) Q_DECL_OVERRIDE;

private Q_SLOTS:
void slotShibbolethCookieReceived(const QNetworkCookie&, AccountPtr);
void slotShibbolethCookieReceived(const QNetworkCookie&);
void slotBrowserRejected();

private:
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/creds/shibboleth/shibbolethwebview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void ShibbolethWebView::onNewCookiesForUrl (const QList<QNetworkCookie>& cookieL
if (url.host() == _account->url().host()) {
QNetworkCookie shibCookie = ShibbolethCredentials::findShibCookie(_account.data(), cookieList);
if (shibCookie != QNetworkCookie()) {
Q_EMIT shibbolethCookieReceived(shibCookie, _account);
Q_EMIT shibbolethCookieReceived(shibCookie);
accept();
close();
}
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/creds/shibboleth/shibbolethwebview.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class OWNCLOUDSYNC_EXPORT ShibbolethWebView : public QWebView
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;

Q_SIGNALS:
void shibbolethCookieReceived(const QNetworkCookie &cookie, AccountPtr account);
void shibbolethCookieReceived(const QNetworkCookie &cookie);
void rejected();

private Q_SLOTS:
Expand Down
4 changes: 2 additions & 2 deletions src/libsync/creds/shibbolethcredentials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ void ShibbolethCredentials::showLoginWindow()
jar->clearSessionCookies();

_browser = new ShibbolethWebView(_account->sharedFromThis());
connect(_browser, SIGNAL(shibbolethCookieReceived(QNetworkCookie, AccountPtr)),
this, SLOT(onShibbolethCookieReceived(QNetworkCookie, AccountPtr)), Qt::QueuedConnection);
connect(_browser, SIGNAL(shibbolethCookieReceived(QNetworkCookie)),
this, SLOT(onShibbolethCookieReceived(QNetworkCookie)), Qt::QueuedConnection);
connect(_browser, SIGNAL(rejected()), this, SLOT(slotBrowserRejected()));

_browser->show();
Expand Down

0 comments on commit b0dbb49

Please sign in to comment.