From: mkr Date: Wed, 25 Jan 2006 06:59:12 +0000 (+0000) Subject: Fix for bug PAL11332 : In Edit ports, changing the workspace adds the entered ports... X-Git-Tag: mergeto_trunk_07Feb06~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dac3e37f871426ea5e0c6f4388e0e38f2aa7c054;p=modules%2Fsuperv.git Fix for bug PAL11332 : In Edit ports, changing the workspace adds the entered ports twice. --- diff --git a/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.cxx b/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.cxx index cd81664..a480e3e 100644 --- a/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.cxx +++ b/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.cxx @@ -528,8 +528,12 @@ void SUPERVGUI_ManagePortsDlg::init( const SUPERVGUI_CanvasNode* theNode ) { // 1. fill myTypeCombo with all available types myTypeCombo->insertStrList( gTypes ); + + // 2. mkr : PAL11332 : clear Input and Output listboxes + myInList->clear(); + myOutList->clear(); - // 2. fill Input and Output listboxes with Ports' names/types + // 3. fill Input and Output listboxes with Ports' names/types QStringList aTypes; SUPERV_Ports aPorts = aINode->Ports(); for ( int i=0; i < aPorts->length(); i++ ) {