Skip to content
Snippets Groups Projects
Commit 6010b02e authored by dt's avatar dt
Browse files

Fix setBuildTargets() in the generic project manager

parent 833b86d5
No related branches found
No related tags found
No related merge requests found
...@@ -142,9 +142,10 @@ void GenericMakeStep::setBuildTarget(const QString &buildConfiguration, const QS ...@@ -142,9 +142,10 @@ void GenericMakeStep::setBuildTarget(const QString &buildConfiguration, const QS
{ {
QStringList old = value(buildConfiguration, "buildTargets").toStringList(); QStringList old = value(buildConfiguration, "buildTargets").toStringList();
if (on && !old.contains(target)) if (on && !old.contains(target))
setValue(buildConfiguration, "buildTargets", old << target); old << target;
else if(!on && old.contains(target)) else if(!on && old.contains(target))
setValue(buildConfiguration, "buildTargets", old.removeOne(target)); old.removeOne(target);
setValue(buildConfiguration, "buildTargets", old);
} }
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment