Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
d5db7e9a
Commit
d5db7e9a
authored
Mar 24, 2010
by
dt
Browse files
Select the tab after insertion
Reviewed-By: con
parent
0742932d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/doubletabwidget.cpp
View file @
d5db7e9a
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment