src/lddocument.cpp

changeset 1377
0b9a946002be
parent 1340
ea1b3ea9a3ca
child 1383
2e7ffaf6239f
--- a/src/lddocument.cpp	Tue Apr 03 18:55:57 2018 +0300
+++ b/src/lddocument.cpp	Wed Apr 04 11:19:49 2018 +0300
@@ -54,6 +54,14 @@
 		SLOT(handleImminentObjectRemoval(QModelIndex)),
 		Qt::DirectConnection
 	);
+	connect(
+		this,
+		&Model::modelChanged,
+		[&]()
+		{
+			this->m_needsRecache = true;
+		}
+	);
 }
 
 LDDocument::~LDDocument()
@@ -444,7 +452,7 @@
 	{
 		m_vertices.clear();
 		Model model {m_documents};
-		inlineContents(model, true, true);
+		this->inlineContents(model, true, true);
 
 		for (LDObject* obj : model.objects())
 		{

mercurial