--- a/src/documentmanager.cpp Mon Jun 13 02:18:25 2022 +0300 +++ b/src/documentmanager.cpp Tue Jun 14 17:55:50 2022 +0300 @@ -37,6 +37,7 @@ { const ModelId modelId{++this->modelIdCounter}; this->openModels.emplace(std::make_pair(modelId, ModelInfo{ + .model = std::make_unique<Model>(this), .id = modelId, .opentype = OpenType::ManuallyOpened, }));