Skip to content

Commit

Permalink
Only show documentation for LibraryTreeItem::Modelica
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 29, 2019
1 parent a95655f commit 21f82a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OMEdit/OMEditGUI/Modeling/DocumentationWidget.cpp
Expand Up @@ -408,6 +408,10 @@ DocumentationWidget::~DocumentationWidget()
*/
void DocumentationWidget::showDocumentation(LibraryTreeItem *pLibraryTreeItem)
{
// We only support documentation of Modelica classes.
if (pLibraryTreeItem->getLibraryType() != LibraryTreeItem::Modelica) {
return;
}
// if documentation is proctected then do not show it.
if (pLibraryTreeItem->getAccess() < LibraryTreeItem::documentation) {
// Remove the class documentation if it is showed previously.
Expand Down

0 comments on commit 21f82a3

Please sign in to comment.