|
|
|
@ -849,6 +849,8 @@ bool TabWidget::restoreState(const QVector<WebTab::SavedTab> &tabs, int currentT |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_tabBar->setIsRestoring(true); |
|
|
|
|
|
|
|
|
|
|
|
QVector<QPair<WebTab*, QVector<int>>> childTabs; |
|
|
|
QVector<QPair<WebTab*, QVector<int>>> childTabs; |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < tabs.size(); ++i) { |
|
|
|
for (int i = 0; i < tabs.size(); ++i) { |
|
|
|
@ -870,6 +872,8 @@ bool TabWidget::restoreState(const QVector<WebTab::SavedTab> &tabs, int currentT |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_tabBar->setIsRestoring(false); |
|
|
|
|
|
|
|
|
|
|
|
setCurrentIndex(currentTab); |
|
|
|
setCurrentIndex(currentTab); |
|
|
|
QTimer::singleShot(0, m_tabBar, SLOT(ensureVisible(int,int))); |
|
|
|
QTimer::singleShot(0, m_tabBar, SLOT(ensureVisible(int,int))); |
|
|
|
|
|
|
|
|
|
|
|
|