From a4f89dff5d5e3ca0f01173fb2e466b803a87efc8 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 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(); -- 2.39.2