Correctly mark project as opened in view.
Better handling of invalid idf files.