diff --git a/src/plugins/qmljseditor/qmljsmodelmanager.cpp b/src/plugins/qmljseditor/qmljsmodelmanager.cpp
index 479d5b98f5eb7a4f965f3b2c89f14883d0fa7a0e..2de3c60c76c4824e591fc48fa1f5219d3a62f05c 100644
--- a/src/plugins/qmljseditor/qmljsmodelmanager.cpp
+++ b/src/plugins/qmljseditor/qmljsmodelmanager.cpp
@@ -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;