X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_FilterDlg.cxx;h=97f1df847d47671462c6830e5880de2cc680197a;hp=76f50ada4af8fe02c24d93084e3cb862297ba097;hb=c4cacfb5c15254953d6a1ce60a2196e099c91a9a;hpb=c2037920d01df98a73df98df8a2b234babe1106c diff --git a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx index 76f50ada4..97f1df847 100755 --- a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx @@ -1012,6 +1012,7 @@ void SMESHGUI_FilterTable::Init (const QList& theTypes) Table* aTable = createTable(mySwitchTableGrp, *typeIt); myTables[ *typeIt ] = aTable; ((QVBoxLayout*)mySwitchTableGrp->layout())->addWidget(myTables[ *typeIt ]); + myEntityType = -1; } } } @@ -3363,7 +3364,7 @@ bool SMESHGUI_FilterDlg::onApply() insertFilterInViewer(); if (!myFilter[ aCurrType ]->GetPredicate()->_is_nil()) { - // + // bool toFilter = (( SMESH::FindActorByObject( myMesh )) || ( myInitSourceWgOnApply && mySourceWg ) || ( mySourceGrp->checkedId() == Dialog && mySourceWg )); @@ -3372,6 +3373,9 @@ bool SMESHGUI_FilterDlg::onApply() filterSource(aCurrType, aResultIds); // select in viewer selectInViewer(aCurrType, aResultIds); + // set ids to the dialog + if ( myInitSourceWgOnApply || mySourceGrp->checkedId() == Dialog ) + setIdsToWg(mySourceWg, aResultIds); } } @@ -3675,10 +3679,6 @@ void SMESHGUI_FilterDlg::selectInViewer (const int theType, const QList& th // insert previously stored filter in viewer if necessary if (!aFilter.IsNull()) SMESH::SetFilter(aFilter); - - // set ids to the dialog - if (myInitSourceWgOnApply || mySourceGrp->checkedId() == Dialog) - setIdsToWg(mySourceWg, theIds); } //=======================================================================