From: stv Date: Tue, 25 Mar 2008 14:19:37 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_0_0a1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=65c9c896eb9137c8b3f966dad4e65dd914ef1ded;p=modules%2Fgui.git *** empty log message *** --- 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();