--- a/src/toolsets/filetoolset.cpp Fri Feb 03 10:51:08 2017 +0200 +++ b/src/toolsets/filetoolset.cpp Sat Feb 04 14:24:16 2017 +0200 @@ -179,8 +179,8 @@ { LDSubfileReference* reference = dynamic_cast<LDSubfileReference*>(object); - if (reference and reference->fileInfo()->isCache()) - reference->fileInfo()->openForEditing(); + if (reference and reference->fileInfo()->isFrozen()) + m_window->openDocumentForEditing(reference->fileInfo()); } } @@ -203,7 +203,7 @@ if (dialog->exec()) { LDDocument* primitive = primitives()->generatePrimitive(dialog->primitiveModel()); - primitive->openForEditing(); + m_window->openDocumentForEditing(primitive); m_window->save(primitive, false); } }