From 380482d8297db851e03ee52a33f24403879bb7df Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 20 Oct 2023 20:10:50 +0800 Subject: [PATCH] - fix: Project recompiles for every run if auto increase build number is turned on. - fix: Auto increase build number for project is not correctly processed. --- NEWS.md | 2 ++ RedPandaIDE/project.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 6813960f..4aec36a1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -18,6 +18,8 @@ Red Panda C++ Version 2.25 - enhancement: Differentiate /* and /** when calculate auto indents. - fix: crash when using ibus as the input method. - fix: Correctly handle project templates that have wrong unit counts. + - fix: Project recompiles for every run if auto increase build number is turned on. + - fix: Auto increase build number for project is not correctly processed. Red Panda C++ Version 2.24 diff --git a/RedPandaIDE/project.cpp b/RedPandaIDE/project.cpp index 4c2b0464..7aa42482 100644 --- a/RedPandaIDE/project.cpp +++ b/RedPandaIDE/project.cpp @@ -1918,14 +1918,14 @@ PProjectModelNode Project::getParentFileSystemFolderNode(const QString &filename void Project::incrementBuildNumber() { mOptions.versionInfo.build++; - mOptions.versionInfo.fileVersion = QString("%1.%2.%3.%3") + mOptions.versionInfo.fileVersion = QString("%1.%2.%3.%4") .arg(mOptions.versionInfo.major) .arg(mOptions.versionInfo.minor) .arg(mOptions.versionInfo.release) .arg(mOptions.versionInfo.build); if (mOptions.versionInfo.syncProduct) mOptions.versionInfo.productVersion = mOptions.versionInfo.fileVersion; - setModified(true); + saveOptions(); } QHash Project::loadLayout()