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(); }