Skip to content

Commit

Permalink
Use isSimulationAllowed for updateBindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Feb 11, 2016
1 parent 8dacf8d commit 4aec656
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OMEdit/OMEditGUI/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -2405,8 +2405,10 @@ void LibraryTreeView::showContextMenu(QPoint point)
menu.addAction(mpExportFMUAction);
menu.addAction(mpExportXMLAction);
menu.addAction(mpExportFigaroAction);
menu.addSeparator();
menu.addAction(mpUpdateBindingsAction);
if (pLibraryTreeItem->isSimulationAllowed()) {
menu.addSeparator();
menu.addAction(mpUpdateBindingsAction);
}
break;
case LibraryTreeItem::Text:
menu.addAction(mpUnloadTLMFileAction);
Expand Down

0 comments on commit 4aec656

Please sign in to comment.