diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp
index 454937589c7db4b46d3999c211de3ff412c5f2ca..8c41d62682169567aa5edb252d25af8fe9e958a2 100644
--- a/src/plugins/qt4projectmanager/qt4nodes.cpp
+++ b/src/plugins/qt4projectmanager/qt4nodes.cpp
@@ -646,7 +646,7 @@ void Qt4PriFileNode::changeFiles(const FileType fileType,
     }
 
     const QStringList vars = varNames(fileType);
-    QDir priFileDir = QDir(m_projectDir);
+    QDir priFileDir = QDir(m_qt4ProFileNode->m_projectDir);
 
     if (change == AddToProFile) {
         ProVariable *proVar = 0;