[#2303] Copy raw name from flight configf
This commit is contained in:
parent
ba67e72e59
commit
9ff699bcbc
@ -882,7 +882,7 @@ public class FlightConfiguration implements FlightConfigurableParameter<FlightCo
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setName(final String newName) {
|
public void setName(final String newName) {
|
||||||
if ((newName == null) || ("".equals(newName))) {
|
if ((newName == null) || (newName.isEmpty())) {
|
||||||
this.configurationName = DEFAULT_CONFIG_NAME;
|
this.configurationName = DEFAULT_CONFIG_NAME;
|
||||||
return;
|
return;
|
||||||
}else if( ! this.getId().isValid()){
|
}else if( ! this.getId().isValid()){
|
||||||
|
@ -386,7 +386,7 @@ public class Rocket extends ComponentAssembly {
|
|||||||
copyRocket.configSet = new FlightConfigurableParameterSet<>(new FlightConfiguration(copyRocket));
|
copyRocket.configSet = new FlightConfigurableParameterSet<>(new FlightConfiguration(copyRocket));
|
||||||
for (FlightConfigurationId key : this.configSet.getIds()) {
|
for (FlightConfigurationId key : this.configSet.getIds()) {
|
||||||
FlightConfiguration newCfg = new FlightConfiguration(copyRocket, key);
|
FlightConfiguration newCfg = new FlightConfiguration(copyRocket, key);
|
||||||
newCfg.setName(this.configSet.get(key).getName()); // Copy config name
|
newCfg.setName(this.configSet.get(key).getNameRaw()); // Copy config name
|
||||||
copyRocket.configSet.set(key, newCfg);
|
copyRocket.configSet.set(key, newCfg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -438,7 +438,7 @@ public class Rocket extends ComponentAssembly {
|
|||||||
this.configSet.setDefault(new FlightConfiguration(this));
|
this.configSet.setDefault(new FlightConfiguration(this));
|
||||||
for (FlightConfigurationId key : source.configSet.map.keySet()) {
|
for (FlightConfigurationId key : source.configSet.map.keySet()) {
|
||||||
FlightConfiguration newCfg = new FlightConfiguration(this, key);
|
FlightConfiguration newCfg = new FlightConfiguration(this, key);
|
||||||
newCfg.setName(source.configSet.get(key).getName()); // Copy config name
|
newCfg.setName(source.configSet.get(key).getNameRaw()); // Copy config name
|
||||||
this.configSet.set(key, newCfg);
|
this.configSet.set(key, newCfg);
|
||||||
}
|
}
|
||||||
this.selectedConfiguration = this.configSet.get(source.getSelectedConfiguration().getId());
|
this.selectedConfiguration = this.configSet.get(source.getSelectedConfiguration().getId());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user