Github user FSchumacher commented on a diff in the pull request: https://github.com/apache/jmeter/pull/300#discussion_r130236483 --- Diff: src/core/org/apache/jmeter/gui/action/CheckDirty.java --- @@ -64,11 +64,12 @@ public CheckDirty() { previousGuiItems = new HashMap<>(); ActionRouter.getInstance().addPreActionListener(ExitCommand.class, this); + ActionRouter.getInstance().addPostActionListener(UndoCommand.class, this); } @Override public void actionPerformed(ActionEvent e) { - if (e.getActionCommand().equals(ActionNames.EXIT)) { + if (e.getActionCommand().equals(ActionNames.EXIT) || e.getActionCommand().equals(ActionNames.UNDO) || e.getActionCommand().equals(ActionNames.REDO)) { --- End diff -- Maybe we should define one set of names that identify the commands that should call `doAction` than this would be probably more readable.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---