From: eap Date: Wed, 12 Apr 2006 14:34:08 +0000 (+0000) Subject: clear existing hypotheses in startOperation() X-Git-Tag: T3_2_0b1_pre1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=99f6e04253eebcb790a19f2579b0560f8760b395;p=modules%2Fsmesh.git clear existing hypotheses in startOperation() --- diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index 30dda9a9b..0bde588e9 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -225,13 +225,15 @@ void SMESHGUI_MeshOp::startOperation() for ( int i = SMESH::DIM_1D; i <= SMESH::DIM_3D; i++ ) { SMESHGUI_MeshTab* aTab = myDlg->tab( i ); - QStringList anAvailable; + QStringList hypList; // clear available hypotheses - aTab->setAvailableHyps( MainHyp, anAvailable ); - aTab->setAvailableHyps( AddHyp, anAvailable ); + aTab->setAvailableHyps( MainHyp, hypList ); + aTab->setAvailableHyps( AddHyp, hypList ); + aTab->setExistingHyps( MainHyp, hypList ); + aTab->setExistingHyps( AddHyp, hypList ); // set algos - availableHyps( i, Algo, anAvailable, myAvailableHypData[i][Algo] ); - aTab->setAvailableHyps( Algo, anAvailable ); + availableHyps( i, Algo, hypList, myAvailableHypData[i][Algo] ); + aTab->setAvailableHyps( Algo, hypList ); } if ( myToCreate ) {