forked from qt-creator/qt-creator
Make cloning of BuildConfigurations work again
Task-number: QTCREATORBUG-2207
This commit is contained in:
@@ -196,6 +196,7 @@ void BuildConfiguration::cloneSteps(BuildConfiguration *source)
|
|||||||
m_stepLists.clear();
|
m_stepLists.clear();
|
||||||
foreach (BuildStepList *bsl, source->m_stepLists) {
|
foreach (BuildStepList *bsl, source->m_stepLists) {
|
||||||
BuildStepList *newBsl = new BuildStepList(this, bsl);
|
BuildStepList *newBsl = new BuildStepList(this, bsl);
|
||||||
|
newBsl->cloneSteps(bsl);
|
||||||
m_stepLists.append(newBsl);
|
m_stepLists.append(newBsl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ public:
|
|||||||
Target *target() const;
|
Target *target() const;
|
||||||
|
|
||||||
virtual QVariantMap toMap() const;
|
virtual QVariantMap toMap() const;
|
||||||
|
void cloneSteps(BuildStepList *source);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void stepInserted(int position);
|
void stepInserted(int position);
|
||||||
@@ -73,8 +74,6 @@ signals:
|
|||||||
void stepMoved(int from, int to);
|
void stepMoved(int from, int to);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void cloneSteps(BuildStepList *source);
|
|
||||||
|
|
||||||
virtual bool fromMap(const QVariantMap &map);
|
virtual bool fromMap(const QVariantMap &map);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ void DeployConfiguration::cloneSteps(DeployConfiguration *source)
|
|||||||
return;
|
return;
|
||||||
delete m_stepList;
|
delete m_stepList;
|
||||||
m_stepList = new BuildStepList(this, source->stepList());
|
m_stepList = new BuildStepList(this, source->stepList());
|
||||||
|
m_stepList->cloneSteps(source->stepList());
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user