diff --git a/avogadro/mainwindow.cpp b/avogadro/mainwindow.cpp index 9e29b054..cb6f73ac 100644 --- a/avogadro/mainwindow.cpp +++ b/avogadro/mainwindow.cpp @@ -300,10 +300,13 @@ MainWindow::MainWindow(const QStringList& fileNames, bool disableSettings) } // Now set up the interface. + qDebug() << " setting interface "; setupInterface(); // Build up the standard menus, incorporate dynamic menus. + qDebug() << " building menu "; buildMenu(); + qDebug() << " updating recent files "; updateRecentFiles(); // Try to open the file(s) passed in. @@ -312,6 +315,7 @@ MainWindow::MainWindow(const QStringList& fileNames, bool disableSettings) // Give the plugins 5 seconds before timing out queued files. QTimer::singleShot(5000, this, &MainWindow::clearQueuedFiles); } else { + qDebug() << " creating new molecule "; newMolecule(); } @@ -2235,6 +2239,7 @@ void MainWindow::buildTools() int index = 1; foreach (ToolPlugin* toolPlugin, m_tools) { + qDebug() << " adding tool " << toolPlugin->objectName(); // Add action to toolbar. toolPlugin->setParent(this); QAction* action = toolPlugin->activateAction();