From: eap Date: Thu, 19 May 2005 12:46:15 +0000 (+0000) Subject: CheckActiveStudyLock() in accept() X-Git-Tag: V2_2_0_VISU_improvement_2005-05-27~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e39e4c841b62e95a3dcbb9ad33788e1f1d2fecd1;p=modules%2Fvisu.git CheckActiveStudyLock() in accept() --- 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)) {