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();
|
||||
foreach (BuildStepList *bsl, source->m_stepLists) {
|
||||
BuildStepList *newBsl = new BuildStepList(this, bsl);
|
||||
newBsl->cloneSteps(bsl);
|
||||
m_stepLists.append(newBsl);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,6 +65,7 @@ public:
|
||||
Target *target() const;
|
||||
|
||||
virtual QVariantMap toMap() const;
|
||||
void cloneSteps(BuildStepList *source);
|
||||
|
||||
signals:
|
||||
void stepInserted(int position);
|
||||
@@ -73,8 +74,6 @@ signals:
|
||||
void stepMoved(int from, int to);
|
||||
|
||||
protected:
|
||||
void cloneSteps(BuildStepList *source);
|
||||
|
||||
virtual bool fromMap(const QVariantMap &map);
|
||||
|
||||
private:
|
||||
|
||||
@@ -129,6 +129,7 @@ void DeployConfiguration::cloneSteps(DeployConfiguration *source)
|
||||
return;
|
||||
delete m_stepList;
|
||||
m_stepList = new BuildStepList(this, source->stepList());
|
||||
m_stepList->cloneSteps(source->stepList());
|
||||
}
|
||||
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user