Repository navigation
Removed code apparently copied and pasted from RocketComponentConfig.… - #2809
jimmiedave wants to merge 2 commits into
Conversation
…java. The removed code responded to preferences setting for Components - there is no preferences setting for the SaveDesignInfoPanel - in the same way that RocketComponentConfig.java did. This should resolve openrocket#2680
|
When you say "should", was it checked if the issue in #2680 was resolved by the removal of this? |
|
Heh. Good point: I hate seeing "should" in requirements docs and the like.
PS - before removing the copy/paste code, I did go over what the code was doing, and made sure I understood why it would've been there (in the original dialog) and why it didn't belong here. |
|
Aye sound, and cheers for going into detail and humouring my pedantic nature 😅 |
…argeted to new method cancelClose() (from prior target copyChangesToAllSims, which was left alone). Cancel button's actionPerformed method retargeted to cancelClose(). cancelClose() created with prior contents of Cancel button's actionPerformed method. windowListener removal line changed to target windowCloseCancelListner().
|
Gotta pull this back to fix. |
Removed code from
SaveDesignInfoPanel.javawhich was apparently pasted fromRocketComponentConfig.java. The removed code was causing misbehavior from an unrelated preference setting (former lines 61-73 ofSaveDesignInfoPanel) and causing spuriousdocument.undo()actions upon dialog cancel (former line 81): there should be nothing to undo re: theSaveDesignInfoPanel. This should resolve #2680