Skip to content

Commit

Permalink
Disable toolbar for OMSimulator models
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Feb 7, 2018
1 parent bfe77c2 commit aa30393
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -6012,9 +6012,12 @@ void ModelWidgetContainer::currentModelWidgetChanged(QMdiSubWindow *pSubWindow)
} else if (pLibraryTreeItem->getLibraryType() == LibraryTreeItem::Text) {
modelica = false;
compositeModel = false;
} else {
} else if (pLibraryTreeItem->getLibraryType() == LibraryTreeItem::CompositeModel) {
modelica = false;
compositeModel = true;
} else {
modelica = false;
compositeModel = false;
}
} else {
enabled = false;
Expand Down

0 comments on commit aa30393

Please sign in to comment.