- 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: Remove todos/bookmarks/breakpoints when deleting file from project
- enhancement: Rename filenames in todos/bookmarks/breakpoints when renaming project file - enhancement: Rename filenames in todos/bookmarks/breakpoints when renaming project file
- enhancement: Rename filenames in bookmarks/breakpoints after a file is save-ased. - 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 Red Panda C++ Version 2.3

View File

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