Skip to content

Commit

Permalink
Text view for OMSimulator components
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Jan 18, 2019
1 parent d04b21f commit 9a352e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -3841,8 +3841,8 @@ void ModelWidget::createModelWidgetComponents()
}
connect(mpDiagramViewToolButton, SIGNAL(toggled(bool)), SLOT(showDiagramView(bool)));
pViewButtonsHorizontalLayout->addWidget(mpDiagramViewToolButton);
// Only the top level OMSimualtor models or systems will have the editor.
if (mpLibraryTreeItem->isTopLevel() || mpLibraryTreeItem->isSystemElement()) {
// Only the top level OMSimualtor models or systems or components will have the editor.
if (mpLibraryTreeItem->isTopLevel() || mpLibraryTreeItem->isSystemElement() || mpLibraryTreeItem->isComponentElement()) {
connect(mpTextViewToolButton, SIGNAL(toggled(bool)), SLOT(showTextView(bool)));
pViewButtonsHorizontalLayout->addWidget(mpTextViewToolButton);
// create an editor
Expand Down

0 comments on commit 9a352e4

Please sign in to comment.