1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Remove WebPage loadFinished workaround

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-08-05 21:54:57 +02:00
parent 1f5e256e5a
commit b2ec20778b
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -109,13 +109,6 @@ WebPage::WebPage(QObject* parent)
disconnect(m_contentsResizedConnection); disconnect(m_contentsResizedConnection);
}); });
// Workaround for broken load started/finished signals in QtWebEngine 5.10, 5.11
connect(this, &QWebEnginePage::loadProgress, this, [this](int progress) {
if (progress == 100) {
Q_EMIT loadFinished(true);
}
});
connect(this, &QWebEnginePage::registerProtocolHandlerRequested, this, [this](QWebEngineRegisterProtocolHandlerRequest request) { connect(this, &QWebEnginePage::registerProtocolHandlerRequested, this, [this](QWebEngineRegisterProtocolHandlerRequest request) {
delete m_registerProtocolHandlerRequest; delete m_registerProtocolHandlerRequest;
m_registerProtocolHandlerRequest = new QWebEngineRegisterProtocolHandlerRequest(request); m_registerProtocolHandlerRequest = new QWebEngineRegisterProtocolHandlerRequest(request);