src/toolsets/filetoolset.cpp

changeset 1090
ed73c4f48ca4
parent 1079
67c6e5d32e68
child 1103
ac7db4c076c3
equal deleted inserted replaced
1089:97a539057536 1090:ed73c4f48ca4
177 { 177 {
178 for (LDObject* object : selectedObjects()) 178 for (LDObject* object : selectedObjects())
179 { 179 {
180 LDSubfileReference* reference = dynamic_cast<LDSubfileReference*>(object); 180 LDSubfileReference* reference = dynamic_cast<LDSubfileReference*>(object);
181 181
182 if (reference and reference->fileInfo()->isCache()) 182 if (reference and reference->fileInfo()->isFrozen())
183 reference->fileInfo()->openForEditing(); 183 m_window->openDocumentForEditing(reference->fileInfo());
184 } 184 }
185 } 185 }
186 186
187 void FileToolset::downloadFrom() 187 void FileToolset::downloadFrom()
188 { 188 {
201 GeneratePrimitiveDialog* dialog = new GeneratePrimitiveDialog {m_window}; 201 GeneratePrimitiveDialog* dialog = new GeneratePrimitiveDialog {m_window};
202 202
203 if (dialog->exec()) 203 if (dialog->exec())
204 { 204 {
205 LDDocument* primitive = primitives()->generatePrimitive(dialog->primitiveModel()); 205 LDDocument* primitive = primitives()->generatePrimitive(dialog->primitiveModel());
206 primitive->openForEditing(); 206 m_window->openDocumentForEditing(primitive);
207 m_window->save(primitive, false); 207 m_window->save(primitive, false);
208 } 208 }
209 } 209 }
210 210
211 // These are not exactly file tools but I don't want to make another toolset just for 3 very small actions 211 // These are not exactly file tools but I don't want to make another toolset just for 3 very small actions

mercurial