From 2a74f6fd82cd290ec677141415f31f64eb463f75 Mon Sep 17 00:00:00 2001 From: srn Date: Thu, 14 Jul 2005 10:43:52 +0000 Subject: [PATCH] Added a defintion of method void onLoadDoc() --- src/STD/STD_Application.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index ab3eaa891..dd478f44e 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -277,6 +277,11 @@ bool STD_Application::onOpenDoc( const QString& aName ) return res; } +/*! called on loading the existent study */ +void STD_Application::onLoadDoc() +{ +} + /*! \retval true, if document was loaded successful, else false.*/ bool STD_Application::onLoadDoc( const QString& aName ) { @@ -332,7 +337,7 @@ void STD_Application::onCloseDoc() beforeCloseDoc( study ); if ( study ) - study->closeDocument(); + study->closeDocument(myClosePermanently); clearViewManagers(); @@ -365,6 +370,7 @@ void STD_Application::onCloseDoc() */ bool STD_Application::isPossibleToClose() { + myClosePermanently = true; //SRN: BugID: IPAL9021 if ( activeStudy() ) { activeStudy()->abortAllOperations(); @@ -386,6 +392,7 @@ bool STD_Application::isPossibleToClose() case 2: break; case 3: + myClosePermanently = false; break; case 4: default: -- 2.39.2