1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +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);
hideCloseButton(m_tabWidget->lastTabIndex());
QTimer::singleShot(100, this, [=]() {
ensureVisible(index);
});
QTimer::singleShot(100, this, [this]() { ensureVisible(); });
}
m_tabWidget->currentTabChanged(index);