Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractLangsListTab.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractLangsListTab.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractLangsListTab.java
index 874812e16ca..83e8ae654e4 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractLangsListTab.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractLangsListTab.java
@@ -600,7 +600,7 @@ public abstract class AbstractLangsListTab extends AbstractCPropertyTab {
if (!toAllCfgs && !(cur_cfg.equals(rcfg)))
continue;
for (ICLanguageSetting l : getLangSetting(rcfg)) {
- if (id == l.getName() || toAllLang) {
+ if (toAllLang || id == l.getName() || (id != null && id.equals(l.getName()))) {
List<ICLanguageSettingEntry> lst = l.getSettingEntriesList(getKind());
lst.add(ent);
l.setSettingEntries(getKind(), lst);

Back to the top