mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 10:32:11 +01:00
TabBar: Fix scrolling to current tab after session restore
This commit is contained in:
parent
c25e6a99a6
commit
9f20772238
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user