diff -r 0347e9bc883e -r 5d2c9d36da9d src/model.cpp --- a/src/model.cpp Sat Mar 03 16:59:03 2018 +0200 +++ b/src/model.cpp Sat Mar 03 17:25:12 2018 +0200 @@ -65,6 +65,8 @@ */ void Model::insertObject(int position, LDObject* object) { + connect(object, SIGNAL(codeChanged(QString,QString)), this, SLOT(recountTriangles())); + if (object->model() and object->model() != this) object->model()->withdraw(object);