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

WebTab: Add 1 second delay before restoring tab on session restore

Workarounds crash in QtWebEngine
This commit is contained in:
David Rosca 2016-12-27 20:10:33 +01:00
parent 47b2bf30ad
commit ad563dbba4

View File

@ -352,7 +352,11 @@ void WebTab::restoreTab(const WebTab::SavedTab &tab)
}
}
else {
p_restoreTab(tab);
// This is called only on restore session and restoring tabs immediately
// crashes QtWebEngine, waiting after initialization is complete fixes it
QTimer::singleShot(1000, this, [=]() {
p_restoreTab(tab);
});
}
}