mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 17:25:38 +02:00
Bug #218484 : Description not saved when creating a new configuration based on an existing one
This commit is contained in:
parent
d12b37a95c
commit
b848ef7a4d
1 changed files with 5 additions and 5 deletions
|
@ -308,8 +308,7 @@ public class NewCfgDialog implements INewCfgDialog {
|
|||
cloneConfigSelector.setEnabled(b_clone.getSelection());
|
||||
realConfigSelector.setEnabled(b_real.getSelection());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public int open() {
|
||||
if (parentShell == null) return 1;
|
||||
|
@ -341,9 +340,9 @@ public class NewCfgDialog implements INewCfgDialog {
|
|||
IProjectType pType = cfg.getProjectType();
|
||||
if(pType != null){
|
||||
IConfiguration[] cfs = pType.getConfigurations();
|
||||
for (int j=0; j<cfs.length; j++) {
|
||||
if (cfs[j] != null && !lst.contains(cfs[j]))
|
||||
lst.add(cfs[j]);
|
||||
for (IConfiguration c : cfs) {
|
||||
if (c != null && !lst.contains(c))
|
||||
lst.add(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -460,6 +459,7 @@ public class NewCfgDialog implements INewCfgDialog {
|
|||
if (b_clone.getSelection()) {
|
||||
ICConfigurationDescription base = ManagedBuildManager.getDescriptionForConfiguration(parentConfig);
|
||||
cfgDes = des.createConfiguration(id, newName, base);
|
||||
cfgDes.setDescription(newDescription);
|
||||
} else {
|
||||
CConfigurationData data = config.getConfigurationData();
|
||||
cfgDes = des.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data);
|
||||
|
|
Loading…
Add table
Reference in a new issue