mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Shib: Ensure browser view gets closed before QNAM
Otherwise, QWebPage tries to delete its QNetworkReplies, which have already been deleted by the QNAM destruction, who is their parent. Fixes #1840
This commit is contained in:
parent
e1db834ec9
commit
4abe00ff6c
2 changed files with 2 additions and 2 deletions
|
@ -352,7 +352,7 @@ void ShibbolethCredentials::showLoginWindow(Account* account)
|
|||
}
|
||||
_browser = new ShibbolethWebView(account);
|
||||
connect(_browser, SIGNAL(shibbolethCookieReceived(QNetworkCookie, Account*)),
|
||||
this, SLOT(onShibbolethCookieReceived(QNetworkCookie, Account*)));
|
||||
this, SLOT(onShibbolethCookieReceived(QNetworkCookie, Account*)), Qt::QueuedConnection);
|
||||
connect(_browser, SIGNAL(rejected()), this, SLOT(slotBrowserRejected()));
|
||||
|
||||
_browser->show();
|
||||
|
|
|
@ -48,7 +48,7 @@ void OwncloudShibbolethCredsPage::setupBrowser()
|
|||
|
||||
_browser = new ShibbolethWebView(account);
|
||||
connect(_browser, SIGNAL(shibbolethCookieReceived(const QNetworkCookie&, Account*)),
|
||||
this, SLOT(slotShibbolethCookieReceived()));
|
||||
this, SLOT(slotShibbolethCookieReceived()), Qt::QueuedConnection);
|
||||
connect(_browser, SIGNAL(rejected()),
|
||||
this, SLOT(slotBrowserRejected()));
|
||||
|
||||
|
|
Loading…
Reference in a new issue