So after writing in a projectfile as in the cookbook in QGIS 2.14 with.
finfo = QFileInfo(filename)
project.write(finfo)
I want to open that project in the main window. So I try:
project.read(finfo)
But the project doesn't open. How can I open the .qgs file I've created in the window?