From 8916920fb8c02d0cb42644e6d297b82201fd69c9 Mon Sep 17 00:00:00 2001 From: asv Date: Tue, 8 Feb 2005 10:23:31 +0000 Subject: [PATCH] Fix for PAL8105. When removing "put_in_study" attribute, do not check for study->isLocked(). (when setting "put_in_study" -- do check). --- src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2