]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Debug
authorouv <ouv@opencascade.com>
Thu, 17 Dec 2009 11:53:15 +0000 (11:53 +0000)
committerouv <ouv@opencascade.com>
Thu, 17 Dec 2009 11:53:15 +0000 (11:53 +0000)
src/SalomeApp/SalomeApp_NoteBookDlg.cxx

index fd35915e84fb4aa05db49d26cbd18b0cd439e130..33512f55cc1d7a3753ec8ffa53e7baf5008bb966 100644 (file)
@@ -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<SalomeApp_Application*>( SUIT_Session::session()->activeApplication() ) )
+    if( SalomeApp_Study* study = dynamic_cast<SalomeApp_Study*>( app->activeStudy() ) )
+    {
+      _PTR(Study) studyDS = study->studyDS();
+      if( studyDS->IsModified() )
+        app->updateActions();
+    }
+
   accept();
 }