]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix bug 10955: Collisions with 'Ctrl+I' and 'Ctrl+M' hot keys.
authorjfa <jfa@opencascade.com>
Wed, 10 May 2006 14:31:39 +0000 (14:31 +0000)
committerjfa <jfa@opencascade.com>
Wed, 10 May 2006 14:31:39 +0000 (14:31 +0000)
src/VISUGUI/VisuGUI.cxx

index 0431e7db3e46bf384adb15f3625bf711e7b32da9..98bb59d630bb09b7339e5bc06314ce08202ca1c8 100644 (file)
@@ -2831,6 +2831,10 @@ activateModule( SUIT_Study* theStudy )
   studyActivated();
   setMenuShown( true );
   setToolShown( true );
+
+  // Reset actions accelerator keys
+  action(VISU_IMPORT_FROM_FILE)->setAccel(QKeySequence(CTRL + Key_I));
+
   return true;
 }
 
@@ -2842,6 +2846,9 @@ deactivateModule( SUIT_Study* theStudy )
   setMenuShown( false );
   setToolShown( false );
 
+  // Unset actions accelerator keys
+  action(VISU_IMPORT_FROM_FILE)->setAccel(QKeySequence());
+
   SalomeApp_Module::deactivateModule( theStudy );
   return true;
 }