1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

Fix restoring state of current tab after restoring last session.

- After 04b288b3 WebTab does not restore its state on showEvent
- QupZilla issue: https://github.com/QupZilla/qupzilla/issues/2467
This commit is contained in:
Razi Alavizadeh 2017-10-06 19:35:54 +03:30
parent 4c827bee74
commit 991fb32cc3

View File

@ -831,9 +831,7 @@ bool TabWidget::restoreState(const QVector<WebTab::SavedTab> &tabs, int currentT
setCurrentIndex(currentTab);
QTimer::singleShot(0, m_tabBar, SLOT(ensureVisible(int,int)));
// WebTab is restoring state on showEvent
weTab()->hide();
weTab()->show();
weTab()->tabActivated();
return true;
}