From 62f7c0a49532dbf691351cc0b7665f906ef67a2e Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 9 Aug 2023 23:01:53 +0800 Subject: [PATCH] - change: New file created by file template is set as unmodified by default. --- NEWS.md | 1 + RedPandaIDE/editor.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 84d0b212..aeee3e6f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -21,6 +21,7 @@ Red Panda C++ Version 2.24 - change: Git support is disabled in the distributed buildings. - fix: Wrong code suggestion while inputing numbers in assembly files. - fix: Defines in all files are wrongly cleared when reparsing. + - change: New file created by file template is set as unmodified by default. Red Panda C++ Version 2.23 diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 09e0ea80..4bf058e8 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -182,7 +182,7 @@ Editor::Editor(QWidget *parent, const QString& filename, if (!fileTemplate.isEmpty()) { insertCodeSnippet(fileTemplate); setCaretPosition(1,1); - mCanAutoSave = true; + setModified(false); } } if (!isNew && parentPageControl) {