Skip to content

Commit

Permalink
Merge pull request #1873 from ghutchis/revert-forcefield-delay
Browse files Browse the repository at this point in the history
  • Loading branch information
ghutchis authored Dec 19, 2024
2 parents 67580db + d66a526 commit 33bce45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
21 changes: 8 additions & 13 deletions avogadro/qtplugins/forcefield/forcefield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,7 @@ Forcefield::Forcefield(QObject* parent_)
connect(action, SIGNAL(triggered()), SLOT(unfreezeSelected()));
m_actions.push_back(action);

// single-shot timer to allow the GUI to start up
QTimer::singleShot(500, this, SLOT(deferredStart()));
}

Forcefield::~Forcefield() {}

QList<QAction*> Forcefield::actions() const
{
return m_actions;
}

void Forcefield::deferredStart()
{
// initialize the calculators

// prefer to use Python interface scripts if available
refreshScripts();
Expand All @@ -150,6 +138,13 @@ void Forcefield::deferredStart()
#endif
}

Forcefield::~Forcefield() {}

QList<QAction*> Forcefield::actions() const
{
return m_actions;
}

QStringList Forcefield::menuPath(QAction* action) const
{
QStringList path;
Expand Down
2 changes: 0 additions & 2 deletions avogadro/qtplugins/forcefield/forcefield.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ private slots:
void freezeSelected();
void unfreezeSelected();

void deferredStart();

private:
QList<QAction*> m_actions;
QtGui::Molecule* m_molecule = nullptr;
Expand Down
1 change: 1 addition & 0 deletions avogadro/vtk/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)

if(WIN32 AND NOT BUILD_SHARED_LIBS)
Expand Down

0 comments on commit 33bce45

Please sign in to comment.