Skip to content

Commit

Permalink
Rework of the active molecule handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patryk Skowroński committed Aug 3, 2023
1 parent 7cc4d16 commit 44fdb52
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 136 deletions.
5 changes: 4 additions & 1 deletion avogadro/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,10 @@ MainWindow::MainWindow(const QStringList& fileNames, bool disableSettings)
GLWidget* glWidget =
qobject_cast<GLWidget*>(m_multiViewWidget->activeWidget());

m_TDxController = new TDxController(this, glWidget, &m_molecule);
m_TDxController = new TDxController(this, glWidget);

connect(this, &MainWindow::moleculeChanged, m_TDxController, &TDxController::updateMolecule);

m_TDxController->enableController();

QMap<QString, QList<QAction*>> actionsMap = m_menuBuilder->getMenuActions();
Expand Down
Loading

0 comments on commit 44fdb52

Please sign in to comment.