src/toolsets/filetoolset.cpp

changeset 1090
ed73c4f48ca4
parent 1079
67c6e5d32e68
child 1103
ac7db4c076c3
--- 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);
 	}
 }

mercurial