diff --git a/avogadro/qtopengl/glwidget.cpp b/avogadro/qtopengl/glwidget.cpp index 3dcee7a3cc..b76fb3edb1 100644 --- a/avogadro/qtopengl/glwidget.cpp +++ b/avogadro/qtopengl/glwidget.cpp @@ -47,6 +47,12 @@ void GLWidget::setMolecule(QtGui::Molecule* mol) m_molecule = mol; foreach (QtGui::ToolPlugin* tool, m_tools) tool->setMolecule(m_molecule); + + if (m_molecule) { + // update properties like dipole rendering + QTimer::singleShot(500, m_molecule, &QtGui::Molecule::update); + } + connect(m_molecule, SIGNAL(changed(unsigned int)), SLOT(updateScene())); }