mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
0052215: TC7.3.0:salome crashes after lock study
This commit is contained in:
parent
1254687132
commit
f147401fad
@ -848,6 +848,11 @@ void GeometryGUI::createGeomAction( const int id, const QString& label, const QS
|
|||||||
void GeometryGUI::createOriginAndBaseVectors()
|
void GeometryGUI::createOriginAndBaseVectors()
|
||||||
{
|
{
|
||||||
SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( application()->activeStudy() );
|
SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( 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 ) {
|
if ( appStudy ) {
|
||||||
_PTR(Study) studyDS = appStudy->studyDS();
|
_PTR(Study) studyDS = appStudy->studyDS();
|
||||||
if ( studyDS && !CORBA::is_nil( GetGeomGen() ) ) {
|
if ( studyDS && !CORBA::is_nil( GetGeomGen() ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user