From: kga Date: Tue, 10 Dec 2013 06:03:09 +0000 (+0000) Subject: 0052215: TC7.3.0:salome crashes after lock study X-Git-Tag: V7_3_0~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f147401fad8b9476a9ac7b80ecba68db8105984f;p=modules%2Fgeom.git 0052215: TC7.3.0:salome crashes after lock study --- diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index ee74a0503..ddc8c2e7c 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -848,6 +848,11 @@ void GeometryGUI::createGeomAction( const int id, const QString& label, const QS void GeometryGUI::createOriginAndBaseVectors() { SalomeApp_Study* appStudy = dynamic_cast( application()->activeStudy() ); + bool aLocked = (_PTR(AttributeStudyProperties)(appStudy->studyDS()->GetProperties()))->IsLocked(); + if ( aLocked ) { + SUIT_MessageBox::warning ( application()->desktop(), QObject::tr("WRN_WARNING"), QObject::tr("WRN_STUDY_LOCKED") ); + return; + } if ( appStudy ) { _PTR(Study) studyDS = appStudy->studyDS(); if ( studyDS && !CORBA::is_nil( GetGeomGen() ) ) {