Skip to content
Snippets Groups Projects
Commit 0a33abf0 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix import path list growing over time.

Reviewed-by: Roberto Raggi
parent f391988e
No related branches found
No related tags found
No related merge requests found
......@@ -506,12 +506,14 @@ void ModelManager::onLoadPluginTypes(const QString &libraryPath, const QString &
void ModelManager::updateImportPaths()
{
m_allImportPaths.clear();
QMapIterator<ProjectExplorer::Project *, ProjectInfo> it(m_projects);
while (it.hasNext()) {
it.next();
m_allImportPaths += it.value().importPaths;
}
m_allImportPaths += m_defaultImportPaths;
m_allImportPaths.removeDuplicates();
// check if any file in the snapshot imports something new in the new paths
Snapshot snapshot = _snapshot;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment