From b9aceb420be87b6eb319f1bf7b8b492e0b15307e Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sat, 29 Oct 2022 18:19:45 +0800 Subject: [PATCH] - fix: Before run a project's executable, we should check timestamp for project files AND modification states of files openned in editor. --- NEWS.md | 1 + RedPandaIDE/project.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index 55f06fbd..7a55f187 100644 --- a/NEWS.md +++ b/NEWS.md @@ -10,6 +10,7 @@ Red Panda C++ Version 2.1 - reduce size of the executable of win-git-askpass tool - change: remove "Optimize for the following machine" and "Optimize less, while maintaining full compatibility" options in the compiler setting panel, which are obseleted. - change: escape spaces in the executabe path under linux. + - fix: Before run a project's executable, we should check timestamp for project files AND modification states of files openned in editor. Red Panda C++ Version 2.0 diff --git a/RedPandaIDE/project.cpp b/RedPandaIDE/project.cpp index 1cb1f5d5..1e19c913 100644 --- a/RedPandaIDE/project.cpp +++ b/RedPandaIDE/project.cpp @@ -164,6 +164,9 @@ bool Project::unitsModifiedSince(const QDateTime& time) qDebug()<modified()) + return true; } return false; }