From fedf0d706487a0ab385140c1c54a7d49314d8112 Mon Sep 17 00:00:00 2001 From: stv Date: Wed, 26 Mar 2008 11:02:16 +0000 Subject: [PATCH] *** empty log message *** --- src/LightApp/LightApp_Application.cxx | 6 +++++- src/Qtx/QtxMRUAction.cxx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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; -- 2.39.2