Merge pull request #420 from teyrana/fix_new_stage

[fix][oneline] both Create Stage buttons now create stages with the same name
This commit is contained in:
Wes Cravens 2018-07-05 00:54:41 -05:00 committed by GitHub
commit 5fcd62dc84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -37,7 +37,6 @@ RocketActions.EditAct.Edit = Edit
RocketActions.EditAct.ttip.Edit = Edit the selected component.
RocketActions.NewStageAct.Newstage = New stage
RocketActions.NewStageAct.ttip.Newstage = Add a new stage to the rocket design.
RocketActions.ActBoosterstage = Booster stage
RocketActions.MoveUpAct.Moveup = Move up
RocketActions.MoveUpAct.ttip.Moveup = Move this component upwards.
RocketActions.MoveDownAct.Movedown = Move down

View File

@ -619,8 +619,7 @@ public class RocketActions {
ComponentConfigDialog.hideDialog();
RocketComponent stage = new AxialStage();
//// Booster stage
stage.setName(trans.get("RocketActions.ActBoosterstage"));
//// Add stage
document.addUndoPosition("Add stage");
rocket.addChild(stage);