From: sbh Date: Mon, 9 Feb 2015 08:44:10 +0000 (+0300) Subject: Fix for shortcut problem X-Git-Tag: V_1.1.0~211 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55dca4e1d17475b4ea4bd9606014a878f3a7ff05;p=modules%2Fshaper.git Fix for shortcut problem --- diff --git a/src/XGUI/XGUI_ActionsMgr.cpp b/src/XGUI/XGUI_ActionsMgr.cpp index 933b73e6e..0d9c4d01f 100644 --- a/src/XGUI/XGUI_ActionsMgr.cpp +++ b/src/XGUI/XGUI_ActionsMgr.cpp @@ -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());