diff --git a/src/plugins/VerticalTabs/tabtreeview.cpp b/src/plugins/VerticalTabs/tabtreeview.cpp index ef981aa95..716cd31ff 100644 --- a/src/plugins/VerticalTabs/tabtreeview.cpp +++ b/src/plugins/VerticalTabs/tabtreeview.cpp @@ -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); + } }); }