From 405315bd8e6ce18b35fd0e3e2e2a33821474a0a7 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 26 Mar 2023 17:14:40 +0800 Subject: [PATCH] - fix: When adding files to project and there'are duplicates, the warning info is not complete. --- NEWS.md | 1 + RedPandaIDE/project.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index b1b9d8da..83bb26b6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -15,6 +15,7 @@ Red Panda C++ Version 2.19 - change: Use ctrl+shift+S as the shortcut for "save as". - change: Use ctrl+K,ctrl+S as the shortcut for "save all". - fix: "Run all problem cases" with project is not correctly handled. + - fix: When adding files to project and there'are duplicates, the warning info is not complete. Red Panda C++ Version 2.18 diff --git a/RedPandaIDE/project.cpp b/RedPandaIDE/project.cpp index d4b4396c..d214f1e8 100644 --- a/RedPandaIDE/project.cpp +++ b/RedPandaIDE/project.cpp @@ -1266,7 +1266,7 @@ PProjectUnit Project::internalAddUnit(const QString &inFileName, PProjectModelNo if (fileAlreadyExists(inFileName)) { QMessageBox::critical(nullptr, tr("File Exists"), - tr("File '%1' is already in the project"), + tr("File '%1' is already in the project").arg(inFileName), QMessageBox::Ok); return PProjectUnit(); }