Commit f9cb5d26 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

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: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent bcd29daa
......@@ -797,8 +797,6 @@ void QbsProject::updateCppCodeModel()
}
}
if (pinfo.projectParts().isEmpty())
return;
pinfo.finish();
QtSupport::UiCodeModelManager::update(this, uiFiles);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment