Commit 6010b02e authored by dt's avatar dt
Browse files

Fix setBuildTargets() in the generic project manager

parent 833b86d5
......@@ -142,9 +142,10 @@ void GenericMakeStep::setBuildTarget(const QString &buildConfiguration, const QS
QStringList old = value(buildConfiguration, "buildTargets").toStringList();
if (on && !old.contains(target))
setValue(buildConfiguration, "buildTargets", old << target);
old << target;
else if(!on && old.contains(target))
setValue(buildConfiguration, "buildTargets", old.removeOne(target));
setValue(buildConfiguration, "buildTargets", old);
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