1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 19:12:11 +01:00

BrowserWindow: Make sure window is shown before restoring session

Same reasoning as 639ecf3626dc5fa667acb17fa35bc398bdaf4712
This commit is contained in:
David Rosca 2017-12-30 15:51:52 +01:00
parent 5ecf3d8b98
commit 3aa629ceac

View File

@ -889,6 +889,7 @@ void BrowserWindow::addDeleteOnCloseWidget(QWidget* widget)
void BrowserWindow::restoreWindowState(const RestoreManager::WindowData &d) void BrowserWindow::restoreWindowState(const RestoreManager::WindowData &d)
{ {
restoreState(d.windowState); restoreState(d.windowState);
show(); // Window has to be visible before adding QWebEngineView's
m_tabWidget->restoreState(d.tabsState, d.currentTab); m_tabWidget->restoreState(d.tabsState, d.currentTab);
updateStartupFocus(); updateStartupFocus();
} }