aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2010-03-24 17:33:57 +0100
committerdt <qtc-committer@nokia.com>2010-03-25 17:37:23 +0100
commitd5db7e9a0becafe7e23287e37d1e54f5af8dd7f4 (patch)
tree9c930436c0127401a4800695be6806933c38cfdc /src/plugins/projectexplorer
parent0742932d177081c1b6fc194136ae54e1610e0488 (diff)
Select the tab after insertion
Reviewed-By: con
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r--src/plugins/projectexplorer/doubletabwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/doubletabwidget.cpp b/src/plugins/projectexplorer/doubletabwidget.cpp
index 33f9157e0c..95010781af 100644
--- a/src/plugins/projectexplorer/doubletabwidget.cpp
+++ b/src/plugins/projectexplorer/doubletabwidget.cpp
@@ -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;