From 6526e8caecc479b2565e3f9019a3bbb75e9a6c16 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 27 Mar 2024 17:45:48 +0800 Subject: [PATCH] - fix: "project name".exe.manifest is auto removed when build the project. --- NEWS.md | 1 + RedPandaIDE/project.cpp | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/NEWS.md b/NEWS.md index 621f8fb1..5ec5cfe9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -98,6 +98,7 @@ Red Panda C++ Version 2.27 - enhancement: Adjust function tip pos to prevent it from run outside the right window edge. - enhancement: Open ".def" (Module definition file) file in editor when double click it in the project view. - enhancement: When a dll project has .def file, use it when generating the dll file. + - fix: "project name".exe.manifest is auto removed when build the project. Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/RedPandaIDE/project.cpp b/RedPandaIDE/project.cpp index 7c0f5d9f..90e8fb7a 100644 --- a/RedPandaIDE/project.cpp +++ b/RedPandaIDE/project.cpp @@ -1543,9 +1543,6 @@ void Project::buildPrivateResource() QFile::remove(resFile); mOptions.privateResource = ""; } -// if fileExists(Res) then -// FileSetDate(Res, DateTimeToFileDate(Now)); // fix the "Clock skew detected" warning ;) - // create XP manifest if (mOptions.supportXPThemes) { QStringList content; @@ -1575,8 +1572,7 @@ void Project::buildPrivateResource() content.append(""); content.append(""); stringsToFile(content,executable() + ".Manifest"); - } else if (fileExists(executable() + ".Manifest")) - QFile::remove(executable() + ".Manifest"); + } // create private header file QString hFile = changeFileExt(rcFile, H_EXT);