1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01: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); setCurrentIndex(currentTab);
QTimer::singleShot(0, m_tabBar, SLOT(ensureVisible(int,int))); QTimer::singleShot(0, m_tabBar, SLOT(ensureVisible(int,int)));
// WebTab is restoring state on showEvent weTab()->tabActivated();
weTab()->hide();
weTab()->show();
return true; return true;
} }