From: nds Date: Wed, 7 Oct 2015 12:38:37 +0000 (+0300) Subject: Correction for Edit operation when there is no active widget. X-Git-Tag: V_2.0.0_alfa1~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b815086de521a7e779a2da9b3ea65add9b69e076;p=modules%2Fshaper.git Correction for Edit operation when there is no active widget. --- diff --git a/src/XGUI/XGUI_OperationMgr.cpp b/src/XGUI/XGUI_OperationMgr.cpp index a64083ae5..119e36078 100644 --- a/src/XGUI/XGUI_OperationMgr.cpp +++ b/src/XGUI/XGUI_OperationMgr.cpp @@ -502,7 +502,6 @@ void XGUI_OperationMgr::onOperationStopped() #include 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(currentOperation()); if (!aFOperation || myWorkshop->module()->getFeatureError(aFOperation->feature()).isEmpty()) { emit keyEnterReleased();