From e46f68aead1c04ba28ead25ab04173ac1e3515eb Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Wed, 27 May 2015 14:34:06 -0400 Subject: [PATCH] Enable hydrogen addition. Change-Id: I0b545d84b274addbc9dc0b49e7275b4e72d7ab3f --- avogadro/qtplugins/editor/editor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/avogadro/qtplugins/editor/editor.cpp b/avogadro/qtplugins/editor/editor.cpp index 26357b12d..23da8f698 100644 --- a/avogadro/qtplugins/editor/editor.cpp +++ b/avogadro/qtplugins/editor/editor.cpp @@ -213,12 +213,12 @@ QUndoCommand *Editor::keyPressEvent(QKeyEvent *e) void Editor::adjustHydrogens() { if (m_molecule) { - //Core::HydrogenTools::adjustHydrogens(*m_molecule); + Core::HydrogenTools::adjustHydrogens(m_molecule->molecule()); // Assume bonds and atoms changed... - //m_molecule->emitChanged(QtGui::Molecule::Atoms - // | QtGui::Molecule::Bonds - // | QtGui::Molecule::Added - // | QtGui::Molecule::Removed); + m_molecule->emitChanged(QtGui::Molecule::Atoms + | QtGui::Molecule::Bonds + | QtGui::Molecule::Added + | QtGui::Molecule::Removed); } }