src/documentmanager.cpp

changeset 217
6d95c1a41e6e
parent 214
8e1fe64ce4e3
child 230
a1f3f7d9078b
--- 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,
 	}));

mercurial