]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction for Edit operation when there is no active widget.
authornds <nds@opencascade.com>
Wed, 7 Oct 2015 12:38:37 +0000 (15:38 +0300)
committernds <nds@opencascade.com>
Mon, 2 Nov 2015 09:40:44 +0000 (12:40 +0300)
src/XGUI/XGUI_OperationMgr.cpp

index a64083ae54003f67e23c21b77b8776bec4963494..119e3607823d6c7e1395b235f41ee9c56775ae2a 100644 (file)
@@ -502,7 +502,6 @@ void XGUI_OperationMgr::onOperationStopped()
 #include <ModuleBase_ModelWidget.h>
 bool XGUI_OperationMgr::onKeyReleased(QKeyEvent* theEvent)
 {
-  qDebug("XGUI_OperationMgr::onKeyReleased");
   QObject* aSender = sender();
 
   // Let the manager decide what to do with the given key combination.
@@ -514,8 +513,7 @@ bool XGUI_OperationMgr::onKeyReleased(QKeyEvent* theEvent)
       ModuleBase_Operation* aOperation = currentOperation();
       ModuleBase_IPropertyPanel* aPanel = aOperation->propertyPanel();
       ModuleBase_ModelWidget* aActiveWgt = aPanel->activeWidget();
-      if (aActiveWgt && !aActiveWgt->isEventProcessed(theEvent)) {
-        qDebug("XGUI_OperationMgr::onKeyReleased accept Enter");
+      if (!aActiveWgt || !aActiveWgt->isEventProcessed(theEvent)) {
         ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>(currentOperation());
         if (!aFOperation || myWorkshop->module()->getFeatureError(aFOperation->feature()).isEmpty()) {
           emit keyEnterReleased();