diff options
-rw-r--r-- | src/Authoring/Studio/Palettes/Project/ProjectFileSystemModel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/Project/ProjectFileSystemModel.cpp b/src/Authoring/Studio/Palettes/Project/ProjectFileSystemModel.cpp index 24d24f1b..394250dd 100644 --- a/src/Authoring/Studio/Palettes/Project/ProjectFileSystemModel.cpp +++ b/src/Authoring/Studio/Palettes/Project/ProjectFileSystemModel.cpp @@ -248,6 +248,8 @@ void ProjectFileSystemModel::overridableCopyFile(const QString &srcFile, const Q QFileInfo srcFileInfo(srcFile); if (srcFileInfo.exists() && addUniqueImportFile(srcFile, outImportedFiles)) { QFileInfo targetFileInfo(targetFile); + if (srcFileInfo == targetFileInfo) + return; // Autoskip when source and target is the same if (!targetFileInfo.dir().exists()) targetFileInfo.dir().mkpath(QStringLiteral(".")); |