257 PrimitiveTreeItem* item = static_cast<PrimitiveTreeItem*> (m_window->getPrimitivesTree()->currentItem()); |
257 PrimitiveTreeItem* item = static_cast<PrimitiveTreeItem*> (m_window->getPrimitivesTree()->currentItem()); |
258 QString primitiveName = item->primitive()->name; |
258 QString primitiveName = item->primitive()->name; |
259 LDSubfileReference* reference = currentDocument()->emplaceAt<LDSubfileReference>(m_window->suggestInsertPoint()); |
259 LDSubfileReference* reference = currentDocument()->emplaceAt<LDSubfileReference>(m_window->suggestInsertPoint()); |
260 reference->setFileInfo (m_documents->getDocumentByName(primitiveName)); |
260 reference->setFileInfo (m_documents->getDocumentByName(primitiveName)); |
261 currentDocument()->addToSelection(reference); |
261 currentDocument()->addToSelection(reference); |
262 m_window->buildObjectList(); |
|
263 update(); |
262 update(); |
264 event->acceptProposedAction(); |
263 event->acceptProposedAction(); |
265 } |
264 } |
266 } |
265 } |
267 |
266 |