Skip to content

Commit

Permalink
Don't add the parameter twice
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 authored and adrpo committed Oct 23, 2020
1 parent ffcb20d commit 292691b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OMEdit/OMEditLIB/Element/ElementProperties.cpp
Expand Up @@ -918,6 +918,10 @@ void ElementParameters::createTabsGroupBoxesAndParametersHelper(LibraryTreeItem
int insertIndex = 0;
pLibraryTreeItem->getModelWidget()->loadDiagramView();
foreach (Element *pComponent, pLibraryTreeItem->getModelWidget()->getDiagramGraphicsView()->getElementsList()) {
// if we already have the parameter from one of the inherited class then just skip this one.
if (findParameter(pComponent->getName())) {
continue;
}
/* Ticket #2531
* Do not show the protected & final parameters.
*/
Expand Down

0 comments on commit 292691b

Please sign in to comment.