// 1. fill myTypeCombo with all available types
myTypeCombo->insertStrList( gTypes );
- // 2. mkr : PAL11332 : clear Input and Output listboxes
- myInList->clear();
- myOutList->clear();
-
- // 3. fill Input and Output listboxes with Ports' names/types
+ // 2. fill Input and Output listboxes with Ports' names/types
QStringList aTypes;
SUPERV_Ports aPorts = aINode->Ports();
for ( int i=0; i < aPorts->length(); i++ ) {
if ( aPorts[i]->IsGate() )
continue;
- if ( aPorts[i]->IsInput() )
+ if ( aPorts[i]->IsInput()
+ &&
+ !myInList->findItem( QString( "%1 (%2)" ).arg( aPorts[i]->Name() ).arg( aPorts[i]->Type() ) ) ) // mkr : PAL11332
new PortListItem( myInList, aPorts[i]->Name(), aPorts[i]->Type() );
- else
+ if ( !aPorts[i]->IsInput()
+ &&
+ !myOutList->findItem( QString( "%1 (%2)" ).arg( aPorts[i]->Name() ).arg( aPorts[i]->Type() ) ) ) // mkr : PAL11332
new PortListItem( myOutList, aPorts[i]->Name(), aPorts[i]->Type() );
}
}