]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for PAL8105. When removing "put_in_study" attribute, do not check for study... T_22_03_05 V2_2_0 V2_2_0b4
authorasv <asv@opencascade.com>
Tue, 8 Feb 2005 10:23:31 +0000 (10:23 +0000)
committerasv <asv@opencascade.com>
Tue, 8 Feb 2005 10:23:31 +0000 (10:23 +0000)
src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx

index 8ff068b8f3fab474080281ae5f2c19a166a001bc..1a5c30b88545e3fc83a1646b52a24d2c53379236 100644 (file)
@@ -291,7 +291,8 @@ void SUPERVGUI_CanvasPortOut::toStudy()
 {
   Trace("SUPERVGUI_CanvasPortOut::toStudy");
 
-  if (getMain()->getStudy()->getStudyDocument()->GetProperties()->IsLocked()) {
+  // asv 08.02.05 : added && !myInStudy - fix for PAL8105
+  if ( getMain()->getStudy()->getStudyDocument()->GetProperties()->IsLocked() && !myInStudy ) {
     QMessageBox::warning(QAD_Application::getDesktop(), tr("WRN_WARNING"), 
                         tr("WRN_STUDY_LOCKED"));
     return;