From 65c9c896eb9137c8b3f966dad4e65dd914ef1ded Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 25 Mar 2008 14:19:37 +0000 Subject: [PATCH] *** empty log message *** --- src/LightApp/LightApp_Application.cxx | 9 ++++++++- src/LightApp/LightApp_Application.h | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index e8f752b69..3bddb7862 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -509,7 +509,7 @@ void LightApp_Application::createActions() //! MRU static QtxMRUAction* mru = new QtxMRUAction( tr( "TOT_DESK_MRU" ), tr( "MEN_DESK_MRU" ), 0 ); - connect( mru, SIGNAL( activated( const QString& ) ), this, SLOT( onOpenDoc( const QString& ) ) ); + connect( mru, SIGNAL( activated( const QString& ) ), this, SLOT( onMRUActivated( const QString& ) ) ); registerAction( MRUId, mru ); // default icon for neutral point ('SALOME' module) @@ -2588,6 +2588,13 @@ void LightApp_Application::onWCDestroyed( QObject* ob ) } } +void LightApp_Application::onMRUActivated( const QString& name ) +{ + SUIT_Session* s = SUIT_Session::session(); + if ( s && s->activeApplication() == this ) + onOpenDoc( name ); +} + /*! Connects just added view manager */ diff --git a/src/LightApp/LightApp_Application.h b/src/LightApp/LightApp_Application.h index cc9f4f693..a18817802 100644 --- a/src/LightApp/LightApp_Application.h +++ b/src/LightApp/LightApp_Application.h @@ -199,6 +199,8 @@ protected slots: void onWCDestroyed( QObject* ); + void onMRUActivated( const QString& ); + private slots: void onSelection(); void onRefresh(); -- 2.39.2