From b815086de521a7e779a2da9b3ea65add9b69e076 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 7 Oct 2015 15:38:37 +0300 Subject: [PATCH] Correction for Edit operation when there is no active widget. --- src/XGUI/XGUI_OperationMgr.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); -- 2.39.2