Don't close config dialog if cancel no option selected

This commit is contained in:
SiboVG 2023-01-08 18:19:54 +01:00
parent 75f1ab0cfb
commit 7ea17b01d2

View File

@ -290,8 +290,8 @@ public class RocketComponentConfig extends JPanel {
JPanel msg = createCancelOperationContent();
int resultYesNo = JOptionPane.showConfirmDialog(RocketComponentConfig.this, msg,
trans.get("RocketCompCfg.CancelOperation.title"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
ComponentConfigDialog.disposeDialog();
if (resultYesNo == JOptionPane.YES_OPTION) {
ComponentConfigDialog.disposeDialog();
document.undo();
}
}