mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
VerticalTabs: Scroll to current tab when opening new selected tab
This commit is contained in:
parent
4705581689
commit
7670c7df90
@ -185,6 +185,9 @@ void TabTreeView::rowsInserted(const QModelIndex &parent, int start, int end)
|
||||
for (const QModelIndex &index : qAsConst(stack)) {
|
||||
expand(index);
|
||||
}
|
||||
if (index.data(TabModel::CurrentTabRole).toBool()) {
|
||||
setCurrentIndex(index);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user