From 2b11e94afe85888bd5ebd507de6c6e0220a49bf3 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Mon, 4 Feb 2019 10:03:13 +0100 Subject: [PATCH] Correctly handle cancellation on last open sketch exit Fixes #8488 --- app/src/processing/app/Base.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index e487231d5..e7f76d6da 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -928,7 +928,9 @@ public class Base { public boolean handleClose(Editor editor) { if (editors.size() == 1) { - handleQuit(); + if (!handleQuit()) { + return false; + } // Everything called after handleQuit will only affect OSX editor.setVisible(false); editors.remove(editor);