diff --git a/avogadro/qtgui/interfacescript.cpp b/avogadro/qtgui/interfacescript.cpp index c6163186aa..88195882fd 100644 --- a/avogadro/qtgui/interfacescript.cpp +++ b/avogadro/qtgui/interfacescript.cpp @@ -254,9 +254,8 @@ bool InterfaceScript::processCommand(Core::Molecule* mol) // how do we handle this result? if (obj["readProperties"].toBool()) { - qDebug() << " reading properties"; guiMol->readProperties(newMol); - guiMol->emitChanged(Molecule::Atoms); + guiMol->emitChanged(Molecule::Properties | Molecule::Added); } else if (obj["append"].toBool()) { guiMol->undoMolecule()->appendMolecule(newMol, m_displayName); } else { // replace the whole molecule diff --git a/avogadro/qtgui/molecule.h b/avogadro/qtgui/molecule.h index 9eb86ff981..816e77c538 100644 --- a/avogadro/qtgui/molecule.h +++ b/avogadro/qtgui/molecule.h @@ -73,6 +73,7 @@ class AVOGADROQTGUI_EXPORT Molecule : public QObject, public Core::Molecule UnitCell = 0x04, Selection = 0x08, Layers = 0x16, + Properties = 0x32, /** Operations that can affect the above types. */ Added = 0x1024, Removed = 0x2048, @@ -93,7 +94,8 @@ class AVOGADROQTGUI_EXPORT Molecule : public QObject, public Core::Molecule */ virtual AtomType addAtom(unsigned char atomicNumber, Index uniqueId); - AtomType addAtom(unsigned char number, Vector3 position3d, Index uniqueId = MaxIndex); + AtomType addAtom(unsigned char number, Vector3 position3d, + Index uniqueId = MaxIndex); /** * @brief Remove the specified atom from the molecule.