diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-07-09 15:25:33 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-07-09 13:44:32 +0000 |
commit | f9cb5d265d385c51dd5f069011617b586a4cdc40 (patch) | |
tree | 870c516df3857744103756671a4ab54a189bfb2f | |
parent | bcd29daa48d4294fc02e434c63f0d5b9ac87f1d3 (diff) |
QbsProjectManager: Update the code model even if the project is empty.
This is the right thing to do. For instance, without this patch, after
removing all files from a project the code model still believes they are
there.
Change-Id: I848dbeca865b495aa26483460a0547c8215055f9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-rw-r--r-- | src/plugins/qbsprojectmanager/qbsproject.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsproject.cpp b/src/plugins/qbsprojectmanager/qbsproject.cpp index 853a378e63..5d88012f3d 100644 --- a/src/plugins/qbsprojectmanager/qbsproject.cpp +++ b/src/plugins/qbsprojectmanager/qbsproject.cpp @@ -797,8 +797,6 @@ void QbsProject::updateCppCodeModel() } } - if (pinfo.projectParts().isEmpty()) - return; pinfo.finish(); QtSupport::UiCodeModelManager::update(this, uiFiles); |