mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 14:00:33 +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
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
//
|
//
|
||||||
|
// SMESH SMESHGUI : implementaion of Salome mesh GUI
|
||||||
// SMESH SMDS : implementaion of Salome mesh data structure
|
|
||||||
// File : SMESHGUI_Operation.cxx
|
// File : SMESHGUI_Operation.cxx
|
||||||
// Author : Sergey LITONIN, Open CASCADE S.A.S.
|
// Author : Sergey LITONIN, Open CASCADE S.A.S.
|
||||||
// SMESH includes
|
|
||||||
//
|
|
||||||
#include "SMESHGUI_Operation.h"
|
#include "SMESHGUI_Operation.h"
|
||||||
|
|
||||||
#include "SMESHGUI.h"
|
#include "SMESHGUI.h"
|
||||||
@ -259,9 +257,11 @@ bool SMESHGUI_Operation::isValid( SUIT_Operation* theOtherOp ) const
|
|||||||
// to do add other operations here
|
// 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(theOtherOp->metaObject()->className() ) ||
|
||||||
anOps.contains( metaObject()->className() ) );
|
anOps.contains(metaObject()->className()) ) ) ||
|
||||||
|
( theOtherOp->inherits("LightApp_ShowHideOp") ) );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user