fix illegal state when closing window

This commit is contained in:
benfry
2012-12-16 14:27:10 +00:00
parent e73ef5fbe9
commit 08f844b406

View File

@@ -1877,7 +1877,8 @@ public abstract class Editor extends JFrame implements RunnerListener {
} else if (result == JOptionPane.NO_OPTION) {
return true; // ok to continue
} else if (result == JOptionPane.CANCEL_OPTION) {
} else if (result == JOptionPane.CANCEL_OPTION ||
result == JOptionPane.CLOSED_OPTION) {
return false;
} else {