diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2017-01-19 15:46:40 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2017-01-26 07:52:54 +0000 |
commit | 741596481900347ef4c69d80efdffe710e79ff6b (patch) | |
tree | c7c9471da1abe791de994d8256fcf2b53d03dbbe /src/plugins/clangcodemodel/clangeditordocumentparser.cpp | |
parent | bddfe21961f59ee471b302da9bc7a5c7ee4f561d (diff) |
CppTools: Fix choosing project part after project open
As long as there are project parts for a source file, always determine
the best project part, instead of trying to stick to the previous one.
This ensures the best project part at all times and simplifies the code.
Change-Id: I25ea3eb43a5a3e6d93688d4b8965f596dc9ae22b
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/clangcodemodel/clangeditordocumentparser.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clangeditordocumentparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/clangcodemodel/clangeditordocumentparser.cpp b/src/plugins/clangcodemodel/clangeditordocumentparser.cpp index 9948efcccaf..0d4195c538f 100644 --- a/src/plugins/clangcodemodel/clangeditordocumentparser.cpp +++ b/src/plugins/clangcodemodel/clangeditordocumentparser.cpp @@ -41,7 +41,7 @@ void ClangEditorDocumentParser::updateImpl(const QFutureInterface<void> &, state_.projectPartInfo, updateParams.activeProject, updateParams.languagePreference, - updateParams.hasActiveProjectChanged); + updateParams.projectsUpdated); emit projectPartInfoUpdated(state_.projectPartInfo); setState(state_); } |