From 6dacb6b0bfc21ae3907b1fb66cf4e6147276cf45 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Mon, 12 Dec 2016 14:14:36 +0100 Subject: [PATCH] Clear Modified flag on Save As... Fixes #5550 (in the proper way this time) --- arduino-core/src/processing/app/SketchFile.java | 1 + 1 file changed, 1 insertion(+) diff --git a/arduino-core/src/processing/app/SketchFile.java b/arduino-core/src/processing/app/SketchFile.java index 302d48ce1..9d2a594be 100644 --- a/arduino-core/src/processing/app/SketchFile.java +++ b/arduino-core/src/processing/app/SketchFile.java @@ -298,5 +298,6 @@ public class SketchFile { BaseNoGui.saveFile(storage.getText(), newFile); renamedTo(newFile); + storage.clearModified(); } }