diff --git a/avogadro/qtgui/interfacescript.cpp b/avogadro/qtgui/interfacescript.cpp index d5737cbe70..c6163186aa 100644 --- a/avogadro/qtgui/interfacescript.cpp +++ b/avogadro/qtgui/interfacescript.cpp @@ -252,8 +252,12 @@ bool InterfaceScript::processCommand(Core::Molecule* mol) newMol.perceiveBondOrders(); } - // just append some new bits - if (obj["append"].toBool()) { + // how do we handle this result? + if (obj["readProperties"].toBool()) { + qDebug() << " reading properties"; + guiMol->readProperties(newMol); + guiMol->emitChanged(Molecule::Atoms); + } else if (obj["append"].toBool()) { guiMol->undoMolecule()->appendMolecule(newMol, m_displayName); } else { // replace the whole molecule Molecule::MoleculeChanges changes = (Molecule::Atoms | Molecule::Bonds |