Skip to content

Commit

Permalink
Change back those lines of code that didn't need to be changed
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew J. Milner <[email protected]>
  • Loading branch information
matterhorn103 committed Dec 10, 2023
1 parent c99dbb0 commit 7bd0855
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions avogadro/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1972,16 +1972,15 @@ void MainWindow::buildMenu()
connect(action, SIGNAL(triggered()), SLOT(saveFileAs()));

// Export action for menu
QStringList exportMenuPath = path;
exportMenuPath << tr("&Export");
QStringList exportPath = path;
exportPath << tr("&Export");
action = new QAction(tr("&Molecule…"), this);
m_menuBuilder->addAction(exportMenuPath, action, 110);
m_menuBuilder->addAction(exportPath, action, 110);
#ifndef Q_OS_MAC
action->setIcon(QIcon::fromTheme("document-export"));
#endif
connect(action, SIGNAL(triggered()), this, SLOT(exportFile()));
// Export action for toolbar with more clear name
QStringList exportToolbarPath = path;
action = new QAction(tr("Export Molecule…"), this);
m_fileToolBar->addAction(action);
#ifndef Q_OS_MAC
Expand All @@ -1990,7 +1989,7 @@ void MainWindow::buildMenu()
connect(action, SIGNAL(triggered()), this, SLOT(exportFile()));
// Export graphics
action = new QAction(tr("&Graphics…"), this);
m_menuBuilder->addAction(exportMenuPath, action, 100);
m_menuBuilder->addAction(exportPath, action, 100);
#ifndef Q_OS_MAC
action->setIcon(QIcon::fromTheme("document-export"));
#endif
Expand Down

0 comments on commit 7bd0855

Please sign in to comment.