diff --git a/src/plugins/genericprojectmanager/genericprojectnodes.cpp b/src/plugins/genericprojectmanager/genericprojectnodes.cpp
index b12f8cb5c2871f1bb7340c922b207a266caac6eb..8a7c69a841cba96005b249cdfec46b1c1b8a86db 100644
--- a/src/plugins/genericprojectmanager/genericprojectnodes.cpp
+++ b/src/plugins/genericprojectmanager/genericprojectnodes.cpp
@@ -128,6 +128,8 @@ ProjectExplorer::FolderNode *GenericProjectNode::findOrCreateFolderByName(const
     if (! end)
         return 0;
 
+    QString baseDir = QFileInfo(path()).path();
+
     QString folderName;
     for (int i = 0; i < end; ++i) {
         folderName.append(components.at(i));
@@ -142,7 +144,8 @@ ProjectExplorer::FolderNode *GenericProjectNode::findOrCreateFolderByName(const
     else if (FolderNode *folder = m_folderByName.value(folderName))
         return folder;
 
-    FolderNode *folder = new FolderNode(component);
+    FolderNode *folder = new FolderNode(baseDir + "/" + folderName);
+    folder->setFolderName(component);
     m_folderByName.insert(folderName, folder);
 
     FolderNode *parent = findOrCreateFolderByName(components, end - 1);
diff --git a/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp b/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp
index da5318eb5bc139c54fd80667ac245581d70794da..2c0ed621604595021650c2c68d2ca11f55fa9804 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp
@@ -117,6 +117,8 @@ ProjectExplorer::FolderNode *QmlProjectNode::findOrCreateFolderByName(const QStr
     if (! end)
         return 0;
 
+    QString baseDir = QFileInfo(path()).path();
+
     QString folderName;
     for (int i = 0; i < end; ++i) {
         folderName.append(components.at(i));
@@ -131,7 +133,9 @@ ProjectExplorer::FolderNode *QmlProjectNode::findOrCreateFolderByName(const QStr
     else if (FolderNode *folder = m_folderByName.value(folderName))
         return folder;
 
-    FolderNode *folder = new FolderNode(component);
+    FolderNode *folder = new FolderNode(baseDir + "/" + folderName);
+    folder->setFolderName(component);
+
     m_folderByName.insert(folderName, folder);
 
     FolderNode *parent = findOrCreateFolderByName(components, end - 1);