mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 17:48:34 +05:00
getSMESHGUI()->isActiveStudyLocked() is replaced by
isStudyLocked() In all other operations the second variant must be used
This commit is contained in:
parent
ba1cb5f702
commit
717a547e50
@ -274,7 +274,7 @@ bool SMESHGUI_AddMeshElementOp::onApply()
|
||||
return false;
|
||||
|
||||
IdList ids; selectedIds( 0, ids );
|
||||
if( ids.count()>=myNbNodes && !getSMESHGUI()->isActiveStudyLocked() ) {
|
||||
if( ids.count()>=myNbNodes && !isStudyLocked() ) {
|
||||
//myBusy = true;
|
||||
SMESH::long_array_var anArrayOfIdeces = new SMESH::long_array;
|
||||
anArrayOfIdeces->length(myNbNodes);
|
||||
|
@ -141,7 +141,7 @@ SUIT_SelectionFilter* SMESHGUI_AddSubMeshOp::createFilter( const int id ) const
|
||||
//=================================================================================
|
||||
bool SMESHGUI_AddSubMeshOp::onApply()
|
||||
{
|
||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
||||
if( isStudyLocked() )
|
||||
return false;
|
||||
|
||||
QString myNameSubMesh = myDlg->subMeshName();
|
||||
|
@ -109,7 +109,7 @@ void SMESHGUI_EditHypothesesOp::selectionDone()
|
||||
//=================================================================================
|
||||
bool SMESHGUI_EditHypothesesOp::onApply()
|
||||
{
|
||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
||||
if( isStudyLocked() )
|
||||
return false;
|
||||
|
||||
bool aRes = false;
|
||||
|
@ -80,7 +80,7 @@ SalomeApp_Dialog* SMESHGUI_GroupOp::dlg() const
|
||||
//=======================================================================
|
||||
bool SMESHGUI_GroupOp::onApply()
|
||||
{
|
||||
if( !myDlg || !isValid() || getSMESHGUI()->isActiveStudyLocked() )
|
||||
if( !myDlg || !isValid() || isStudyLocked() )
|
||||
return false;
|
||||
|
||||
QStringList selGroup[2];
|
||||
|
@ -137,7 +137,7 @@ SUIT_SelectionFilter* SMESHGUI_InitMeshOp::createFilter( const int id ) const
|
||||
//=================================================================================
|
||||
bool SMESHGUI_InitMeshOp::onApply()
|
||||
{
|
||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
||||
if( isStudyLocked() )
|
||||
return false;
|
||||
|
||||
QString myNameMesh = myDlg->meshName();
|
||||
|
@ -151,7 +151,7 @@ void SMESHGUI_MoveNodesOp::initDialog()
|
||||
//=======================================================================
|
||||
bool SMESHGUI_MoveNodesOp::onApply()
|
||||
{
|
||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
||||
if( isStudyLocked() )
|
||||
return false;
|
||||
|
||||
if( !myDlg->hasSelection( 0 ) )
|
||||
|
@ -309,7 +309,7 @@ void SMESHGUI_NodesOp::initDialog()
|
||||
//=================================================================================
|
||||
bool SMESHGUI_NodesOp::onApply()
|
||||
{
|
||||
if( getSMESHGUI()->isActiveStudyLocked() || !mySimulation )
|
||||
if( isStudyLocked() || !mySimulation )
|
||||
return false;
|
||||
|
||||
if( mesh()->_is_nil()) {
|
||||
|
@ -106,7 +106,7 @@ void SMESHGUI_RemoveNodesOp::updateDialog()
|
||||
//=================================================================================
|
||||
bool SMESHGUI_RemoveNodesOp::onApply()
|
||||
{
|
||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
||||
if( isStudyLocked() )
|
||||
return false;
|
||||
|
||||
IdList ids; selectedIds( 0, ids );
|
||||
|
@ -125,7 +125,7 @@ void SMESHGUI_RenumberingOp::updateDialog()
|
||||
//=================================================================================
|
||||
bool SMESHGUI_RenumberingOp::onApply()
|
||||
{
|
||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
||||
if( isStudyLocked() )
|
||||
return false;
|
||||
|
||||
if( myDlg->hasSelection( 0 ) )
|
||||
|
Loading…
Reference in New Issue
Block a user