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
4e254f2d
Commit
4e254f2d
authored
May 09, 2011
by
dt
Browse files
Fix crash after removing target
Reported on irc by ckamm
parent
aa5d5c6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/targetselector.cpp
View file @
4e254f2d
...
...
@@ -91,9 +91,7 @@ void TargetSelector::removeTarget(int index)
m_targets
.
removeAt
(
index
);
if
(
m_currentTargetIndex
>=
m_targets
.
count
())
{
setCurrentIndex
(
-
1
);
}
else
if
(
m_currentTargetIndex
>=
index
)
{
if
(
m_currentTargetIndex
>
index
)
{
--
m_currentTargetIndex
;
// force a signal since the index has changed
emit
currentChanged
(
m_currentTargetIndex
,
m_targets
.
at
(
m_currentTargetIndex
).
currentSubIndex
);
...
...
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