diff --git a/BaseLib/ConfigTree.h b/BaseLib/ConfigTree.h
index 97b5aa726214d407ed2b8a6b6737e7d0aa4e9462..5ff3dbd421369eb2086023ed8ab169bb87d3b234 100644
--- a/BaseLib/ConfigTree.h
+++ b/BaseLib/ConfigTree.h
@@ -270,6 +270,9 @@ public:
     //! used anymore!
     ConfigTree& operator=(ConfigTree &&);
 
+    //! Used to get the project file name.
+    std::string const& getProjectFileName() const { return _filename; }
+
     /*! \name Methods for directly accessing parameter values
      *
      */