From: asl Date: Thu, 24 Nov 2005 09:44:05 +0000 (+0000) Subject: PAL10471 - incorrect 3D popup for erased objects X-Git-Tag: BR_3_1_0_deb~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d76a2a255731fc60203613d8d4818df0a84758e6;p=modules%2Fsmesh.git PAL10471 - incorrect 3D popup for erased objects --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 15c9c94cd..e13acafd3 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -2202,7 +2202,10 @@ void SMESHGUI::createPopupItem( const int id, QChar lc = QtxPopupMgr::Selection::defEquality(); QString rule = "(%1) and (%2) and (%3)"; rule = rule.arg( QString( "%1>0" ).arg( QtxPopupMgr::Selection::defSelCountParam() ) ); - rule = rule.arg( QString( "%1client in {%2}" ).arg( lc ).arg( clients ) ); + if( clients.isEmpty() ) + rule = rule.arg( QString( "true" ) ); + else + rule = rule.arg( QString( "%1client in {%2}" ).arg( lc ).arg( clients ) ); rule = rule.arg( QString( "%1type in {%2}" ).arg( lc ).arg( types ) ); rule += theRule;