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

index c5e3a6adc6ac080eb3c83ddc5f8a86b114ee40b5..47e2ee0b6041aae639092ae7b45a0ee2f1496360 100644 (file)
@@ -2866,6 +2866,11 @@ bool SMESHGUI::activateModule( SUIT_Study* study )
   setMenuShown( true );
   setToolShown( true );
 
+  // Reset actions accelerator keys
+  action(111)->setAccel(QKeySequence(CTRL + Key_B)); // Import DAT
+  action(112)->setAccel(QKeySequence(CTRL + Key_U)); // Import UNV
+  action(113)->setAccel(QKeySequence(CTRL + Key_M)); // Import MED
+
   return res;
 }
 
@@ -2876,6 +2881,11 @@ bool SMESHGUI::deactivateModule( SUIT_Study* study )
 
   EmitSignalCloseAllDialogs();
 
+  // Unset actions accelerator keys
+  action(111)->setAccel(QKeySequence()); // Import DAT
+  action(112)->setAccel(QKeySequence()); // Import UNV
+  action(113)->setAccel(QKeySequence()); // Import MED
+
   return SalomeApp_Module::deactivateModule( study );
 }