mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 10:50:37 +05:00
Allow Show/Hide during other SMESH operations. Mantis issue 0021082.
This commit is contained in:
parent
fb9f672fbd
commit
85f3ec887b
@ -19,12 +19,10 @@
|
||||
//
|
||||
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||
//
|
||||
|
||||
// SMESH SMDS : implementaion of Salome mesh data structure
|
||||
// SMESH SMESHGUI : implementaion of Salome mesh GUI
|
||||
// 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" ) &&
|
||||
return ( theOtherOp &&
|
||||
( theOtherOp->inherits("SMESHGUI_Operation") &&
|
||||
( !anOps.contains(theOtherOp->metaObject()->className() ) ||
|
||||
anOps.contains( metaObject()->className() ) );
|
||||
anOps.contains(metaObject()->className()) ) ) ||
|
||||
( theOtherOp->inherits("LightApp_ShowHideOp") ) );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user