]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for shortcut problem
authorsbh <sergey.belash@opencascade.com>
Mon, 9 Feb 2015 08:44:10 +0000 (11:44 +0300)
committersbh <sergey.belash@opencascade.com>
Mon, 9 Feb 2015 08:44:10 +0000 (11:44 +0300)
src/XGUI/XGUI_ActionsMgr.cpp

index 933b73e6e1195ec48e16982246bb0dd6efdd558b..0d9c4d01fdf5f435f736757ed67f6a6191199b88 100644 (file)
@@ -163,6 +163,9 @@ void XGUI_ActionsMgr::updateOnViewSelection()
 
 QKeySequence XGUI_ActionsMgr::registerShortcut(const QKeySequence& theKeySequence)
 {
+  if (theKeySequence.isEmpty()) {
+    return QKeySequence();
+  }
   if (myShortcuts.contains(theKeySequence)) {
     QString aMessage = tr("Shortcut %1 is already defined. Ignore.");
     aMessage = aMessage.arg(theKeySequence.toString());