--- a/src/documentmanager.cpp Wed Sep 22 14:03:43 2021 +0300 +++ b/src/documentmanager.cpp Mon Sep 27 21:04:45 2021 +0300 @@ -89,7 +89,7 @@ QFile file{path}; const QString name = pathToName(path); file.open(QFile::ReadOnly | QFile::Text); - std::unique_ptr<Model> newModel = std::make_unique<Model>(); + std::unique_ptr<Model> newModel = std::make_unique<Model>(path); QTextStream textStream{&file}; Model::EditContext editor = newModel->edit(); Parser parser{file};