diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp
index d585dfd0b40f4555a56cd1ea418c6f742d76334a..3a934f6007e73bdbf3bb53f0878a2fa9b02f4658 100644
--- a/src/plugins/qt4projectmanager/qt4nodes.cpp
+++ b/src/plugins/qt4projectmanager/qt4nodes.cpp
@@ -802,9 +802,9 @@ void Qt4PriFileNode::changeFiles(const FileType fileType,
             }
         }
 
-        ProFileReader *reader = m_project->createProFileReader(m_qt4ProFileNode);
-        includeFile = reader->parsedProFile(m_projectFilePath, false, contents);
-        m_project->destroyProFileReader(reader);
+        ProMessageHandler handler;
+        ProFileParser parser(0, &handler);
+        includeFile = parser.parsedProFile(m_projectFilePath, false, contents);
     }
 
     const QStringList vars = varNames(fileType);