diff --git a/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp b/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp
index 80f9b1b5159a1483668d73436f2830a6302eaed3..f61fb46f14e23419675fbeecd90c7faf80cc2be2 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp
@@ -139,7 +139,7 @@ ProjectExplorer::FolderNode *QmlProjectNode::findOrCreateFolderByName(const QStr
         return folder;
 
     FolderNode *folder = new FolderNode(baseDir + "/" + folderName);
-    folder->setFolderName(component);
+    folder->setDisplayName(component);
 
     m_folderByName.insert(folderName, folder);