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

TabBar: Fix scrolling to current tab after session restore

This commit is contained in:
David Rosca 2016-12-26 14:35:25 +01:00
parent c25e6a99a6
commit 9f20772238

View File

@ -454,9 +454,7 @@ void TabBar::currentTabChanged(int index)
showCloseButton(index); showCloseButton(index);
hideCloseButton(m_tabWidget->lastTabIndex()); hideCloseButton(m_tabWidget->lastTabIndex());
QTimer::singleShot(100, this, [=]() { QTimer::singleShot(100, this, [this]() { ensureVisible(); });
ensureVisible(index);
});
} }
m_tabWidget->currentTabChanged(index); m_tabWidget->currentTabChanged(index);