Allow Show/Hide during other SMESH operations. Mantis issue 0021082.

This commit is contained in:
jfa 2010-12-06 14:49:00 +00:00
parent fb9f672fbd
commit 85f3ec887b

View File

@ -19,12 +19,10 @@
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// SMESH SMESHGUI : implementaion of Salome mesh GUI
// File : SMESHGUI_Operation.cxx
// Author : Sergey LITONIN, Open CASCADE S.A.S.
// SMESH SMDS : implementaion of Salome mesh data structure
// File : SMESHGUI_Operation.cxx
// Author : Sergey LITONIN, Open CASCADE S.A.S.
// SMESH includes
//
#include "SMESHGUI_Operation.h"
#include "SMESHGUI.h"
@ -259,9 +257,11 @@ bool SMESHGUI_Operation::isValid( SUIT_Operation* theOtherOp ) const
// to do add other operations here
}
return theOtherOp && theOtherOp->inherits( "SMESHGUI_Operation" ) &&
( !anOps.contains( theOtherOp->metaObject()->className() ) ||
anOps.contains( metaObject()->className() ) );
return ( theOtherOp &&
( theOtherOp->inherits("SMESHGUI_Operation") &&
( !anOps.contains(theOtherOp->metaObject()->className() ) ||
anOps.contains(metaObject()->className()) ) ) ||
( theOtherOp->inherits("LightApp_ShowHideOp") ) );
return true;
}