mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Html5PermissionNotification: Close when request is canceled / load started
This commit is contained in:
parent
1ed1059c42
commit
7c798585ef
|
@ -72,6 +72,13 @@ HTML5PermissionsNotification::HTML5PermissionsNotification(const QUrl &origin, Q
|
|||
connect(ui->deny, SIGNAL(clicked()), this, SLOT(denyPermissions()));
|
||||
connect(ui->close, SIGNAL(clicked()), this, SLOT(denyPermissions()));
|
||||
|
||||
connect(m_page, &QWebEnginePage::loadStarted, this, &QObject::deleteLater);
|
||||
connect(m_page, &QWebEnginePage::featurePermissionRequestCanceled, this, [this](const QUrl &origin, QWebEnginePage::Feature feature) {
|
||||
if (origin == m_origin && feature == m_feature) {
|
||||
deleteLater();
|
||||
}
|
||||
});
|
||||
|
||||
startAnimation();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user