Skip to content

Commit

Permalink
- fix: Project recompiles for every run if auto increase build number…
Browse files Browse the repository at this point in the history
… is turned on.

  - fix: Auto increase build number for project is not correctly processed.
  • Loading branch information
royqh1979 committed Oct 20, 2023
1 parent fd95b49 commit 380482d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions RedPandaIDE/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<QString, PProjectEditorLayout> Project::loadLayout()
Expand Down

0 comments on commit 380482d

Please sign in to comment.