From: akl Date: Tue, 7 Apr 2015 13:46:37 +0000 (+0400) Subject: 1) Ambigous shortcut correction; 2) Creation of 'ParaView view' menu item in case... X-Git-Tag: V7_6_0b1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d60a6b69a090509a0c93219fbd2c0363bd0912b5;p=modules%2Fgui.git 1) Ambigous shortcut correction; 2) Creation of 'ParaView view' menu item in case of 'ParaViS' module availability only. --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 246a8ab9e..4b8c81e65 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -751,10 +751,13 @@ void LightApp_Application::createActions() createActionForViewer( NewQxSceneViewId, newWinMenu, QString::number( 4 ), Qt::ALT+Qt::Key_S ); #endif #ifndef DISABLE_GRAPHICSVIEW - createActionForViewer( NewGraphicsViewId, newWinMenu, QString::number( 5 ), Qt::ALT+Qt::Key_R ); + createActionForViewer( NewGraphicsViewId, newWinMenu, QString::number( 5 ), Qt::ALT+Qt::Key_C ); #endif #ifndef DISABLE_PVVIEWER - createActionForViewer( NewPVViewId, newWinMenu, QString::number( 6 ), Qt::ALT+Qt::Key_A ); + QStringList aModuleNames; + modules( aModuleNames, false ); + if ( aModuleNames.contains( "ParaViS", Qt::CaseInsensitive ) ) + createActionForViewer( NewPVViewId, newWinMenu, QString::number( 6 ), Qt::ALT+Qt::Key_A ); #endif #ifndef DISABLE_PYVIEWER createActionForViewer( NewPyViewerId, newWinMenu, QString::number( 7 ), Qt::ALT+Qt::Key_Y );