From d60a6b69a090509a0c93219fbd2c0363bd0912b5 Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 7 Apr 2015 17:46:37 +0400 Subject: [PATCH] 1) Ambigous shortcut correction; 2) Creation of 'ParaView view' menu item in case of 'ParaViS' module availability only. --- src/LightApp/LightApp_Application.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 ); -- 2.39.2