1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug #206380 : Managed build displays duplicate build configs when selecting multiple projects

This commit is contained in:
Oleg Krasilnikov 2007-10-16 08:57:55 +00:00
parent b047d952b2
commit 811b4049aa

View file

@ -72,9 +72,11 @@ public class ChangeBuildConfigActionBase {
String sActiveConfig = null; String sActiveConfig = null;
// Store names and detect active configuration // Store names and detect active configuration
for (int i=0; i<cfgDescs.length; i++) { for (int i=0; i<cfgDescs.length; i++) {
configNames.add(cfgDescs[i].getName()); String s = cfgDescs[i].getName();
if (!configNames.contains(s))
configNames.add(s);
if (cfgDescs[i].isActive()) if (cfgDescs[i].isActive())
sActiveConfig = cfgDescs[i].getName(); sActiveConfig = s;
} }
// Check whether all projects have the same active configuration // Check whether all projects have the same active configuration