]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL10471 - incorrect 3D popup for erased objects
authorasl <asl@opencascade.com>
Thu, 24 Nov 2005 09:44:05 +0000 (09:44 +0000)
committerasl <asl@opencascade.com>
Thu, 24 Nov 2005 09:44:05 +0000 (09:44 +0000)
src/SMESHGUI/SMESHGUI.cxx

index 15c9c94cd0a115e8c17fa15033683bc03df3553e..e13acafd339df6d027b1ba45db26e146ea4ca8fc 100644 (file)
@@ -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;