--- a/src/documentmanager.cpp Wed Jun 22 23:51:06 2022 +0300 +++ b/src/documentmanager.cpp Sun Jun 26 19:44:45 2022 +0300 @@ -117,7 +117,7 @@ const OpenType openType ) { QFile file{path}; - const QString name = pathToName(path); + const QString name = pathToName(QFileInfo{path}); file.open(QFile::ReadOnly | QFile::Text); std::unique_ptr<Model> newModel = std::make_unique<Model>(nullptr); QTextStream textStream{&file};