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
......@@ -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;
......
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