- fix: Can't goto definition of classes and namespaces displayed in the class browser on whole project mode.

This commit is contained in:
Roy Qu 2022-11-08 08:24:44 +08:00
parent e69fea634d
commit 6fe1df8e6e
2 changed files with 5 additions and 4 deletions

View File

@ -8,6 +8,7 @@ Red Panda C++ Version 2.4
- enhancement: Remove todos/bookmarks/breakpoints when deleting file from project
- enhancement: Rename filenames in todos/bookmarks/breakpoints when renaming project file
- enhancement: Rename filenames in bookmarks/breakpoints after a file is save-ased.
- fix: Can't goto definition of classes and namespaces displayed in the class browser on whole project mode.
Red Panda C++ Version 2.3

View File

@ -400,10 +400,10 @@ PStatement ClassBrowserModel::createDummy(const PStatement& statement)
result->inSystemHeader = statement->inSystemHeader;
result->isStatic = statement->isStatic;
result->isInherited = statement->isInherited;
result->fileName = mCurrentFile;
result->definitionFileName = mCurrentFile;
result->line = 0;
result->definitionLine = 0;
result->fileName= statement->fileName;
result->line = statement->line;
result->definitionFileName = statement->fileName;
result->definitionLine = statement->definitionLine;
mDummyStatements.insert(result->fullName,result);
return result;
}