From: asv Date: Tue, 8 Feb 2005 10:23:31 +0000 (+0000) Subject: Fix for PAL8105. When removing "put_in_study" attribute, do not check for study... X-Git-Tag: T_22_03_05 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8916920fb8c02d0cb42644e6d297b82201fd69c9;p=modules%2Fsuperv.git Fix for PAL8105. When removing "put_in_study" attribute, do not check for study->isLocked(). (when setting "put_in_study" -- do check). --- diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx b/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx index 8ff068b..1a5c30b 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx +++ b/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx @@ -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;