From: stv Date: Wed, 26 Mar 2008 11:02:16 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_0_0a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fedf0d706487a0ab385140c1c54a7d49314d8112;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 3bddb7862..edf7a391b 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -1433,8 +1433,12 @@ void LightApp_Application::onStudyOpened( SUIT_Study* theStudy ) } /*!Protected SLOT. On study saved.*/ -void LightApp_Application::onStudySaved( SUIT_Study* ) +void LightApp_Application::onStudySaved( SUIT_Study* s ) { + QtxMRUAction* mru = ::qobject_cast( action( MRUId ) ); + if ( mru && s ) + mru->insert( s->studyName() ); + emit studySaved(); } diff --git a/src/Qtx/QtxMRUAction.cxx b/src/Qtx/QtxMRUAction.cxx index 0cc2e5c98..c3767ca5f 100755 --- a/src/Qtx/QtxMRUAction.cxx +++ b/src/Qtx/QtxMRUAction.cxx @@ -389,7 +389,7 @@ void QtxMRUAction::updateMenu() } } - int i = 0; + int i = 1; for ( QStringList::const_iterator it = links.begin(); it != links.end(); ++it, i++ ) { QString linkName;