Skip to content

Commit c2c051e

Browse files
committed
Closes #867
1 parent 53df379 commit c2c051e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Interface/Application/ModuleWidget.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ namespace Gui {
8989
<< new QAction("Replace With", parent)
9090
<< new QAction("Collapse", parent)
9191
<< new QAction("Show Log", parent)
92-
<< disabled(new QAction("Make Sub-Network", parent))
92+
//<< disabled(new QAction("Make Sub-Network", parent)) // Issue #287
9393
<< separatorAction(parent)
9494
<< new QAction("Destroy", parent));
9595
}
@@ -642,8 +642,8 @@ void ModuleWidget::setupModuleActions()
642642
connect(actionsMenu_->getAction("Help"), SIGNAL(triggered()), this, SLOT(launchDocumentation()));
643643
connect(actionsMenu_->getAction("Collapse"), SIGNAL(triggered()), this, SLOT(collapseToMiniMode()));
644644
connect(actionsMenu_->getAction("Duplicate"), SIGNAL(triggered()), this, SLOT(duplicate()));
645-
if (isViewScene_)
646-
actionsMenu_->getAction("Duplicate")->setDisabled(true);
645+
if (isViewScene_ || theModule_->hasDynamicPorts()) //TODO: buggy combination, will disable for now. Fix is #1035
646+
actionsMenu_->getMenu()->removeAction(actionsMenu_->getAction("Duplicate"));
647647

648648
connectNoteEditorToAction(actionsMenu_->getAction("Notes"));
649649
connectUpdateNote(this);

0 commit comments

Comments
 (0)