--- 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()) {