From: jfa Date: Wed, 10 May 2006 14:31:39 +0000 (+0000) Subject: Fix bug 10955: Collisions with 'Ctrl+I' and 'Ctrl+M' hot keys. X-Git-Tag: T3_2_0b1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5040be02983d77050c08694c172e13a4bcbf1ffb;p=modules%2Fvisu.git Fix bug 10955: Collisions with 'Ctrl+I' and 'Ctrl+M' hot keys. --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 0431e7db..98bb59d6 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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; }