Closed danielthatcher closed 5 years ago
Since this PR being merged would cause there being two buttons which apply to the selected item (edit and duplicate), it might make sense to move them to a right click menu.
Hey @danielthatcher,
Thanks for the pull request, I'll merge this and rebuild the JAR. I was considering moving a feature like this into a right click menu, however, burp uses "Duplicate" buttons in the Macros menu and some other spots so I figure it's fine to leave it as a button.
Thanks, Justin
Hey @danielthatcher,
Just a quick follow up, there was a bug with your implementation that I just ironed out. You duplicated the reference to the object, not the object itself. This means that the duplicated items would all get updated when one was updated. I implemented copy constructors for all the objects which deep copy the duplicate items and initialize a new object. Again, thanks for the pull request. I don't think this feature would have been added in any reasonable amount of time otherwise.
Thanks, Justin
Added a button under the add, edit, and remove buttons to duplicate entries. This fixes #53 and adds the same ability for replacements.