From b532b4341dc3c0afdef0b4bbcd942ee03d1247fb Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 17 Dec 2009 11:53:15 +0000 Subject: [PATCH] Debug --- src/SalomeApp/SalomeApp_NoteBookDlg.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/SalomeApp/SalomeApp_NoteBookDlg.cxx b/src/SalomeApp/SalomeApp_NoteBookDlg.cxx index fd35915e8..33512f55c 100644 --- a/src/SalomeApp/SalomeApp_NoteBookDlg.cxx +++ b/src/SalomeApp/SalomeApp_NoteBookDlg.cxx @@ -963,6 +963,15 @@ void SalomeApp_NoteBookDlg::onClose() tr( "OK" ), tr( "CANCEL" ), 0, 1 ) == 1 ) return; + // update "Save" action if the study has been modified + if( SalomeApp_Application* app = dynamic_cast( SUIT_Session::session()->activeApplication() ) ) + if( SalomeApp_Study* study = dynamic_cast( app->activeStudy() ) ) + { + _PTR(Study) studyDS = study->studyDS(); + if( studyDS->IsModified() ) + app->updateActions(); + } + accept(); } -- 2.39.2