]> 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>
Wed, 7 Oct 2015 12:38:37 +0000 (15:38 +0300)
src/XGUI/XGUI_OperationMgr.cpp

index 5b12abc102a9e6f85330fcd8b07ac48770ec27b1..e917a62f322ea4bba5cd34dd2764ad0008add1d8 100644 (file)
@@ -425,7 +425,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.
@@ -437,8 +436,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();