mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Bug fix: sys vars became users after OK/Apply
This commit is contained in:
parent
31a7f8ac8f
commit
063fd7765c
1 changed files with 5 additions and 3 deletions
|
@ -336,10 +336,12 @@ public class EnvironmentTab extends AbstractCPropertyTab {
|
||||||
IEnvironmentVariable[] v = ce.getVariables(dst);
|
IEnvironmentVariable[] v = ce.getVariables(dst);
|
||||||
for (int i=0; i<v.length; i++) ce.removeVariable(v[i].getName(), dst);
|
for (int i=0; i<v.length; i++) ce.removeVariable(v[i].getName(), dst);
|
||||||
v = ce.getVariables(src);
|
v = ce.getVariables(src);
|
||||||
for (int i=0; i<v.length; i++)
|
for (int i=0; i<v.length; i++) {
|
||||||
|
if (ce.isUserVariable(src, v[i]))
|
||||||
ce.addVariable(v[i].getName(), v[i].getValue(),
|
ce.addVariable(v[i].getName(), v[i].getValue(),
|
||||||
v[i].getOperation(), v[i].getDelimiter(), dst);
|
v[i].getOperation(), v[i].getDelimiter(), dst);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue