Salome HOME
Fix crash (from PPGP) when invoking popup on non-smesh (light) object
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_MeshOp.cxx
index c9020d81a154bdcd47b607de824ed1e30d84d87b..62a5c4b74c2118780fbf3076eb71e228ac25a159 100644 (file)
@@ -141,13 +141,6 @@ bool SMESHGUI_MeshOp::onApply()
       SUIT_MessageBox::warning( myDlg, tr( "SMESH_WRN_WARNING" ), aMess );
     return false;
   }
-/*  else if ( aMess == tr( "GEOMETRY_OBJECT_IS_NOT_DEFINED" ) || aMess == tr( "GEOMETRY_OBJECT_IS_NULL" ) )
-  {
-       dlg()->show();
-       if ( SUIT_MessageBox::warning( myDlg, tr( "SMESH_WRN_WARNING" ), aMess,
-                SUIT_MessageBox::Yes, SUIT_MessageBox::No ) == SUIT_MessageBox::No )
-         return false;
-  }*/
 
   bool aResult = false;
   aMess = "";
@@ -744,8 +737,8 @@ bool SMESHGUI_MeshOp::isValid( QString& theMess ) const
       if ( SUIT_MessageBox::warning( myDlg, tr( "SMESH_WRN_WARNING" ), theMess,
            SUIT_MessageBox::Yes, SUIT_MessageBox::No ) == SUIT_MessageBox::No )
       {
-       theMess = "";
-           return false;
+        theMess = "";
+        return false;
       }
       return true;
     }