- fix: When adding files to project and there'are duplicates, the warning info is not complete.

This commit is contained in:
Roy Qu 2023-03-26 17:14:40 +08:00
parent fbe051f709
commit 405315bd8e
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ Red Panda C++ Version 2.19
- change: Use ctrl+shift+S as the shortcut for "save as". - change: Use ctrl+shift+S as the shortcut for "save as".
- change: Use ctrl+K,ctrl+S as the shortcut for "save all". - change: Use ctrl+K,ctrl+S as the shortcut for "save all".
- fix: "Run all problem cases" with project is not correctly handled. - 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 Red Panda C++ Version 2.18

View File

@ -1266,7 +1266,7 @@ PProjectUnit Project::internalAddUnit(const QString &inFileName, PProjectModelNo
if (fileAlreadyExists(inFileName)) { if (fileAlreadyExists(inFileName)) {
QMessageBox::critical(nullptr, QMessageBox::critical(nullptr,
tr("File Exists"), tr("File Exists"),
tr("File '%1' is already in the project"), tr("File '%1' is already in the project").arg(inFileName),
QMessageBox::Ok); QMessageBox::Ok);
return PProjectUnit(); return PProjectUnit();
} }