[bugfix] Removing the selected configuration selects the default

This commit is contained in:
Daniel_M_Williams 2016-04-17 11:00:48 -04:00
parent b02e164bce
commit f7090afd79

View File

@ -595,6 +595,10 @@ public class Rocket extends RocketComponent {
return;
}
if( selectedConfiguration.getId().equals( fcid)){
selectedConfiguration = configSet.getDefault();
}
// Get current configuration:
this.configSet.reset( fcid);
fireComponentChangeEvent(ComponentChangeEvent.MASS_CHANGE);