From 7a05059f2f0618deb412a70be562085f6c0f2ba3 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 18 Oct 2006 14:01:25 +0000 Subject: [PATCH] Imp PAL13587 : Improve "Active module" popup menu command --- src/SalomeApp/SalomeApp_Application.cxx | 3 ++- src/SalomeApp/resources/SalomeApp_msg_en.po | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index d0912a6eb..2efdc44c1 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -951,7 +951,8 @@ void SalomeApp_Application::contextMenuPopup( const QString& type, QPopupMenu* t CAM_Module* currentModule = activeModule(); if (currentModule && currentModule->moduleName() == aModuleTitle) return; - thePopup->insertItem( tr( "MEN_OPENWITH" ), this, SLOT( onOpenWith() ) ); + if ( !aModuleTitle.isEmpty() ) + thePopup->insertItem( tr( "MEN_OPENWITH" ).arg( aModuleTitle ), this, SLOT( onOpenWith() ) ); } /*!Update obect browser: diff --git a/src/SalomeApp/resources/SalomeApp_msg_en.po b/src/SalomeApp/resources/SalomeApp_msg_en.po index 23c83e0e3..c3ad20153 100644 --- a/src/SalomeApp/resources/SalomeApp_msg_en.po +++ b/src/SalomeApp/resources/SalomeApp_msg_en.po @@ -118,7 +118,7 @@ msgid "SalomeApp_Application::PREF_TAB_OBJBROWSER" msgstr "Object browser" msgid "SalomeApp_Application::MEN_OPENWITH" -msgstr "Activate Module" +msgstr "Activate %1 Module" msgid "SalomeApp_Application::MEN_DELETE_INVALID_REFERENCE" msgstr "Delete Invalid Reference" -- 2.39.2