From 7bd0855eb0fb125574d4c22fa41574b9ef0e02b5 Mon Sep 17 00:00:00 2001 From: "Matthew J. Milner" Date: Sun, 10 Dec 2023 22:36:30 +0100 Subject: [PATCH] Change back those lines of code that didn't need to be changed Signed-off-by: Matthew J. Milner --- avogadro/mainwindow.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/avogadro/mainwindow.cpp b/avogadro/mainwindow.cpp index 679efc13..87f38027 100644 --- a/avogadro/mainwindow.cpp +++ b/avogadro/mainwindow.cpp @@ -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 @@ -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