1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Fix build with older GCC

This commit is contained in:
David Rosca 2018-01-28 23:26:43 +01:00
parent f36799a8da
commit 662f935f68
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -1,6 +1,6 @@
/* ============================================================
* Falkon - Qt web browser
* Copyright (C) 2013-2017 David Rosca <nowrep@gmail.com>
* Copyright (C) 2013-2018 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -72,8 +72,8 @@ 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) {
connect(m_page.data(), &QWebEnginePage::loadStarted, this, &QObject::deleteLater);
connect(m_page.data(), &QWebEnginePage::featurePermissionRequestCanceled, this, [this](const QUrl &origin, QWebEnginePage::Feature feature) {
if (origin == m_origin && feature == m_feature) {
deleteLater();
}