Skip to content
Snippets Groups Projects
Commit d5db7e9a authored by dt's avatar dt
Browse files

Select the tab after insertion

Reviewed-By: con
parent 0742932d
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ void DoubleTabWidget::insertTab(int index, const QString &name, const QStringLis
tab.currentSubTab = tab.subTabs.isEmpty() ? -1 : 0;
m_tabs.insert(index, tab);
if (m_currentIndex == -1) {
m_currentIndex = m_tabs.size()-1;
m_currentIndex = index;
emit currentIndexChanged(m_currentIndex, m_tabs.at(m_currentIndex).currentSubTab);
} else if (m_currentIndex >= index) {
++m_currentIndex;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment