forked from qt-creator/qt-creator
BuildConfiguration::cloneSteps Add self clone check
Change-Id: I5ac2e6346b9a0e18fb3ea115f5ebd723e06e512f Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Daniel Teske
parent
75b090e619
commit
25bb6712c6
@@ -250,6 +250,8 @@ void BuildConfiguration::setUserEnvironmentChanges(const QList<Utils::Environmen
|
|||||||
|
|
||||||
void BuildConfiguration::cloneSteps(BuildConfiguration *source)
|
void BuildConfiguration::cloneSteps(BuildConfiguration *source)
|
||||||
{
|
{
|
||||||
|
if (source == this)
|
||||||
|
return;
|
||||||
qDeleteAll(m_stepLists);
|
qDeleteAll(m_stepLists);
|
||||||
m_stepLists.clear();
|
m_stepLists.clear();
|
||||||
foreach (BuildStepList *bsl, source->m_stepLists) {
|
foreach (BuildStepList *bsl, source->m_stepLists) {
|
||||||
|
|||||||
Reference in New Issue
Block a user