]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
1) Ambigous shortcut correction; 2) Creation of 'ParaView view' menu item in case...
authorakl <alexander.kovalev@opencascade.com>
Tue, 7 Apr 2015 13:46:37 +0000 (17:46 +0400)
committerakl <alexander.kovalev@opencascade.com>
Tue, 7 Apr 2015 13:46:37 +0000 (17:46 +0400)
src/LightApp/LightApp_Application.cxx

index 246a8ab9e625343d06a75a90f31db08c710dd8a9..4b8c81e654a14affaf8cbe8f75d2c7edd8902c21 100644 (file)
@@ -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 );