mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
WebPage: Use load finished workaround unconditionally
It seems to be broken, again, with QtWebEngine 5.11. BUG: 392885 FIXED-IN: 3.0.1
This commit is contained in:
parent
63f5fdd3d7
commit
17d45d718c
@ -99,14 +99,12 @@ WebPage::WebPage(QObject* parent)
|
||||
disconnect(m_contentsResizedConnection);
|
||||
});
|
||||
|
||||
// Workaround for broken load started/finished signals in QtWebEngine 5.10
|
||||
if (qstrncmp(qVersion(), "5.10.", 5) == 0) {
|
||||
connect(this, &QWebEnginePage::loadProgress, this, [this](int progress) {
|
||||
if (progress == 100) {
|
||||
emit loadFinished(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
// Workaround for broken load started/finished signals in QtWebEngine 5.10, 5.11
|
||||
connect(this, &QWebEnginePage::loadProgress, this, [this](int progress) {
|
||||
if (progress == 100) {
|
||||
emit loadFinished(true);
|
||||
}
|
||||
});
|
||||
|
||||
// Workaround for changing webchannel world inside acceptNavigationRequest not working
|
||||
m_setupChannelTimer = new QTimer(this);
|
||||
|
Loading…
Reference in New Issue
Block a user