Commit bfad59df authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Make cloning of BuildConfigurations work again

Task-number: QTCREATORBUG-2207
parent d7fb215e
......@@ -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());
}
///
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment