From 5040be02983d77050c08694c172e13a4bcbf1ffb Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 10 May 2006 14:31:39 +0000 Subject: [PATCH] Fix bug 10955: Collisions with 'Ctrl+I' and 'Ctrl+M' hot keys. --- src/VISUGUI/VisuGUI.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.39.2