mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
WebPage: Add workaround for broken load signals in QtWebEngine 5.10
Closes #2479
This commit is contained in:
parent
1daa0b93e6
commit
4d58781c13
@ -99,6 +99,15 @@ WebPage::WebPage(QObject* parent)
|
||||
}
|
||||
disconnect(m_contentsResizedConnection);
|
||||
});
|
||||
|
||||
// Workaround for broken load started/finished signals in QtWebEngine 5.10
|
||||
if (qstrcmp(qVersion(), "5.10.0") == 0) {
|
||||
connect(this, &QWebEnginePage::loadProgress, this, [this](int progress) {
|
||||
if (progress == 100) {
|
||||
emit loadFinished(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
WebPage::~WebPage()
|
||||
|
Loading…
Reference in New Issue
Block a user