From e39e4c841b62e95a3dcbb9ad33788e1f1d2fecd1 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 19 May 2005 12:46:15 +0000 Subject: [PATCH] CheckActiveStudyLock() in accept() --- src/VISUGUI/VisuGUI_CutLinesDlg.cxx | 4 ++++ src/VISUGUI/VisuGUI_CutPlanesDlg.cxx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx index 354c5fce..7afc9625 100644 --- a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx @@ -589,6 +589,10 @@ void VisuGUI_CutLinesDlg::onValueChanged(int theRow, int theCol) { void VisuGUI_CutLinesDlg::accept() { + if ( !VisuGUI::CheckActiveStudyLock() ) { + reject(); + return; + } MYGenerateTable = myCreateTable->isChecked(); MYGenerateCurve = myCurvesCheck->isChecked(); if (myScalarPane->check()) { diff --git a/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx b/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx index de9a2f15..851beef4 100644 --- a/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx @@ -513,6 +513,10 @@ VisuGUI_CutPlanesDlg::VisuGUI_CutPlanesDlg(bool theIsCreation, bool theIsModal) void VisuGUI_CutPlanesDlg::accept() { + if ( !VisuGUI::CheckActiveStudyLock() ) { + reject(); + return; + } if (myScalarPane->check()) { if (!isModal()) { if (storeToPrsObject(myPrs)) { -- 2.39.2