From 08f844b40604e441519bf5ce2b72fd67ba1ff040 Mon Sep 17 00:00:00 2001 From: benfry Date: Sun, 16 Dec 2012 14:27:10 +0000 Subject: [PATCH] fix illegal state when closing window --- app/src/processing/app/Editor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java index 4b89f0ec3..8e4d70af1 100644 --- a/app/src/processing/app/Editor.java +++ b/app/src/processing/app/Editor.java @@ -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 {