X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_FilterDlg.cxx;h=51c6b65c59be0a51c95f7f5a315180413ccccb93;hp=3a3e8e81c9027ae0fb81348706175a045eee5b0b;hb=11bba48d41633960431c5ead19671abae3cf1d98;hpb=24fe0efaab9725fa5e51ec24bb653ec526df5445 diff --git a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx index 3a3e8e81c..51c6b65c5 100755 --- a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx @@ -3363,7 +3363,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 +3372,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); } } @@ -3547,9 +3550,6 @@ void SMESHGUI_FilterDlg::filterSource (const int theType, if (aPred->IsSatisfy(*anIter)) theResIds.append(*anIter); } - // set ids to the dialog - if (myInitSourceWgOnApply || aSourceId == Dialog) - setIdsToWg(mySourceWg, theResIds); } //=======================================================================