Skip to content

Commit

Permalink
Merge pull request #1590 from ghutchis/use-obmm-backup
Browse files Browse the repository at this point in the history
Only use the obmm interface as a backup - prefer Python scripts
  • Loading branch information
ghutchis authored Feb 3, 2024
2 parents 023c63b + b03ac7c commit 853e4d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions avogadro/qtplugins/forcefield/forcefield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,17 @@ Forcefield::Forcefield(QObject* parent_)
m_gradientTolerance = settings.value("gradientTolerance", 1.0e-4).toDouble();
settings.endGroup();

refreshScripts();

// add the openbabel calculators in case they don't exist
Calc::EnergyManager::registerModel(new OBMMEnergy("MMFF94"));
Calc::EnergyManager::registerModel(new OBMMEnergy("UFF"));
Calc::EnergyManager::registerModel(new OBMMEnergy("GAFF"));

refreshScripts();

QAction* action = new QAction(this);
action->setEnabled(true);
action->setText(tr("Optimize"));
action->setText(tr("Optimize Geometry"));
action->setShortcut(QKeySequence("Ctrl+Alt+O"));
action->setData(optimizeAction);
action->setProperty("menu priority", 920);
connect(action, SIGNAL(triggered()), SLOT(optimize()));
Expand Down
1 change: 0 additions & 1 deletion avogadro/qtplugins/openbabel/openbabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ OpenBabel::OpenBabel(QObject* p)
auto* action = new QAction(this);
action->setEnabled(true);
action->setText(tr("Optimize Geometry"));
action->setShortcut(QKeySequence("Ctrl+Alt+O"));
connect(action, SIGNAL(triggered()), SLOT(onOptimizeGeometry()));
m_actions.push_back(action);

Expand Down

0 comments on commit 853e4d6

Please sign in to comment.