Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
5398651c
Commit
5398651c
authored
Mar 30, 2010
by
Tobias Hunger
Browse files
Make targetsettingspanel more robust
Kudos to dt for spotting this
parent
7c3caca0
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/targetsettingspanel.cpp
View file @
5398651c
...
...
@@ -136,6 +136,16 @@ void TargetSettingsPanelWidget::currentTargetChanged(int targetIndex, int subInd
if
(
subIndex
<
-
1
||
subIndex
>=
2
)
return
;
if
(
targetIndex
==
-
1
||
subIndex
==
-
1
)
{
// no more targets!
delete
m_panelWidgets
[
0
];
m_panelWidgets
[
0
]
=
0
;
delete
m_panelWidgets
[
1
];
m_panelWidgets
[
1
]
=
0
;
m_centralWidget
->
setCurrentWidget
(
m_noTargetLabel
);
return
;
}
Target
*
target
=
m_targets
.
at
(
targetIndex
);
// Target was not actually changed:
...
...
@@ -147,13 +157,8 @@ void TargetSettingsPanelWidget::currentTargetChanged(int targetIndex, int subInd
return
;
}
m_currentTarget
=
target
;
// Target has changed:
if
(
targetIndex
==
-
1
)
{
// no more targets!
m_centralWidget
->
setCurrentWidget
(
m_noTargetLabel
);
return
;
}
m_currentTarget
=
target
;
PanelsWidget
*
buildPanel
=
new
PanelsWidget
(
m_centralWidget
);
PanelsWidget
*
runPanel
=
new
PanelsWidget
(
m_centralWidget
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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