- fix: crash when open a project that contains custom folder

This commit is contained in:
Roy Qu 2022-03-07 21:10:59 +08:00
parent b436312d19
commit 81f404d63c
2 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@ Red Panda C++ Version 0.14.5
- fix: the scroll behavior of mouse dragging on the editor's edge is not correct
- fix: calculation of caret position is not in consistence.
- fix: undo one symbol completion as a whole operation
- fix: crash when open a project that contains custom folder
Red Panda C++ Version 0.14.4
- enhancement: git - log

View File

@ -1308,8 +1308,8 @@ void Project::createFileSystemFolderNode(ProjectSpecialFolderNode folderType, co
continue;
if (fileInfo.isDir()) {
PProjectModelNode node = makeNewFileNode(fileInfo.fileName(),true,parent);
mFileSystemFolderNodes.insert(QString("%1/%2").arg((int)folderType).arg(fileInfo.absolutePath()),node);
createFileSystemFolderNode(folderType,fileInfo.path(), node);
mFileSystemFolderNodes.insert(QString("%1/%2").arg((int)folderType).arg(fileInfo.absoluteFilePath()),node);
createFileSystemFolderNode(folderType,fileInfo.absoluteFilePath(), node);
}
}
}