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

Make sure the QWebChannel object is initiated in SpeedDial/Restore pages

Make it more robust, this also fixes issue with Qt 5.9

Closes #2329
This commit is contained in:
David Rosca 2017-05-29 16:46:25 +02:00
parent 74c65c2272
commit f9778eeaad
2 changed files with 10 additions and 0 deletions

View File

@ -267,6 +267,11 @@ function addTab(winId, tab)
function init()
{
if (!external.recovery) {
setTimeout(init, 50);
return;
}
var data = external.recovery.restoreData;
for (var i = 0; i < data.length; ++i) {
var win = data[i];

View File

@ -463,6 +463,11 @@ function disableCentering()
function init()
{
if (!external.speedDial) {
setTimeout(init, 50);
return;
}
%INITIAL-SCRIPT%
external.speedDial.pagesChanged.connect(function() {