Commit 7dc6660d authored by David Thompson's avatar David Thompson

Name "New Resource" menu and its items.

parent edada9bc
Pipeline #147297 running with stage
......@@ -243,6 +243,7 @@ void pqSMTKNewResourceBehavior::updateNewMenu()
if (m_newMenu != nullptr)
{
m_newMenu->clear();
m_newMenu->setObjectName("newResourceMenu");
bool visible = false;
......@@ -278,6 +279,7 @@ void pqSMTKNewResourceBehavior::updateNewMenu()
if (operationIndices.size() == 1)
{
QAction* newResourceAction = new QAction(label, m_newMenu);
newResourceAction->setObjectName(QString::fromStdString(resourceName));
m_newMenu->addAction(newResourceAction);
std::string operationName = creatorGroup.operationName(*operationIndices.begin());
......@@ -303,6 +305,7 @@ void pqSMTKNewResourceBehavior::updateNewMenu()
opLabel = *splitOpLabel.rbegin();
QAction* newResourceAction = new QAction(opLabel, resourceMenu);
newResourceAction->setObjectName(QString::fromStdString(operationName));
resourceMenu->addAction(newResourceAction);
new pqNewResourceReaction(operationName, newResourceAction);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment