From: vsv Date: Mon, 25 Apr 2016 08:22:39 +0000 (+0300) Subject: Issue #1431: Show message if not all results can be highlighted in object browser X-Git-Tag: V_2.3.0~113 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d86f21aadf7cf32127cf289e0b037c34ea2d6d75;p=modules%2Fshaper.git Issue #1431: Show message if not all results can be highlighted in object browser --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 45240ddb7..54775a47b 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -1983,12 +1983,14 @@ void XGUI_Workshop::highlightResults(const QObjectPtrList& theObjects) FeaturePtr aFeature; QObjectPtrList aSelList = theObjects; std::list aResList; + bool aHasHidden = false; foreach(ObjectPtr aObj, theObjects) { aFeature = std::dynamic_pointer_cast(aObj); if (aFeature.get()) { aResList = aFeature->results(); std::list >::const_iterator aIt; for(aIt = aResList.cbegin(); aIt != aResList.cend(); aIt++) { + aHasHidden |= (*aIt)->isConcealed(); aSelList.append(*aIt); } } @@ -1999,6 +2001,9 @@ void XGUI_Workshop::highlightResults(const QObjectPtrList& theObjects) objectBrowser()->setObjectsSelected(aSelList); objectBrowser()->blockSignals(aBlocked); } + if (aHasHidden) + QMessageBox::information(desktop(), tr("Find results"), + tr("Not all results can be highlighted"), QMessageBox::Ok); } void XGUI_Workshop::highlightFeature(const QObjectPtrList& theObjects)