INT PAL 0052873: IDs are not updated

This commit is contained in:
imn 2015-09-23 18:14:03 +03:00
parent fd96feab4b
commit c2037920d0

View File

@ -3547,9 +3547,6 @@ void SMESHGUI_FilterDlg::filterSource (const int theType,
if (aPred->IsSatisfy(*anIter)) if (aPred->IsSatisfy(*anIter))
theResIds.append(*anIter); theResIds.append(*anIter);
} }
// set ids to the dialog
if (myInitSourceWgOnApply || aSourceId == Dialog)
setIdsToWg(mySourceWg, theResIds);
} }
//======================================================================= //=======================================================================
@ -3678,6 +3675,10 @@ void SMESHGUI_FilterDlg::selectInViewer (const int theType, const QList<int>& th
// insert previously stored filter in viewer if necessary // insert previously stored filter in viewer if necessary
if (!aFilter.IsNull()) if (!aFilter.IsNull())
SMESH::SetFilter(aFilter); SMESH::SetFilter(aFilter);
// set ids to the dialog
if (myInitSourceWgOnApply || mySourceGrp->checkedId() == Dialog)
setIdsToWg(mySourceWg, theIds);
} }
//======================================================================= //=======================================================================