From: mkr Date: Wed, 25 Jan 2006 07:25:22 +0000 (+0000) Subject: Fix for bug PAL11332 : In Edit ports, changing the workspace adds the entered ports... X-Git-Tag: T2_2_9pre~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=026df6b1a5388cc223160261cc761833d6fd2fea;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 c6cc037..fb9e5f0 100644 --- a/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.cxx +++ b/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.cxx @@ -395,7 +395,11 @@ void SUPERVGUI_ManagePortsDlg::init( const SUPERVGUI_CanvasNode* theNode ) { // 1. fill myTypeCombo with all available types myTypeCombo->insertStrList( gTypes ); - // 2. fill Input and Output listboxes with Ports' names/types + // 2. mkr : PAL11332 : clear Input and Output listboxes + myInList->clear(); + myOutList->clear(); + + // 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++ ) {