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-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a4f89dff5d5e3ca0f01173fb2e466b803a87efc8;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 5b12abc10..e917a62f3 100644 --- a/src/XGUI/XGUI_OperationMgr.cpp +++ b/src/XGUI/XGUI_OperationMgr.cpp @@ -425,7 +425,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. @@ -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(currentOperation()); if (!aFOperation || myWorkshop->module()->getFeatureError(aFOperation->feature()).isEmpty()) { emit keyEnterReleased();