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:
parent
47b2bf30ad
commit
ad563dbba4
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user