From: rnv Date: Wed, 20 Mar 2013 14:02:34 +0000 (+0000) Subject: Fix for the "0051779: TC7.2.0: Save operation works incorrectly for study loaded... X-Git-Tag: V6_main_FINAL~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c38231a9f3dc124a6ed1212908d607ec6cc4526;p=modules%2Fgui.git Fix for the "0051779: TC7.2.0: Save operation works incorrectly for study loaded from data server" issue. --- diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 7e3659945..054cc1a54 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -557,6 +557,10 @@ bool SalomeApp_Study::loadDocument( const QString& theStudyName ) #endif bool res = CAM_Study::openDocument( theStudyName ); + + //rnv: to fix the "0051779: TC7.2.0: Save operation works incorrectly for study loaded from data server" + // mark study as "not saved" after call openDocument( ... ) method. + setIsSaved(false); emit opened( this ); bool restore = application()->resourceMgr()->booleanValue( "Study", "store_visual_state", true );