1
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:
David Rosca 2018-02-09 17:14:31 +01:00
parent 4705581689
commit 7670c7df90
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -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);
}
});
}