From 8e3a78ec70078f64c13e86b719c82dc6ca3e7e7f Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 31 Jul 2017 09:35:14 +0300 Subject: [PATCH] Issue #2234 The input value widget in the sketcher remains active after validating with Enter key. emitFocusInWidget unconditionally as we need processEnter calling from operation manager. --- src/ModuleBase/ModuleBase_WidgetEditor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ModuleBase/ModuleBase_WidgetEditor.cpp b/src/ModuleBase/ModuleBase_WidgetEditor.cpp index e017a507d..e70fcbb81 100644 --- a/src/ModuleBase/ModuleBase_WidgetEditor.cpp +++ b/src/ModuleBase/ModuleBase_WidgetEditor.cpp @@ -110,9 +110,10 @@ bool ModuleBase_WidgetEditor::showPopupEditor(const bool theSendSignals) bool isValueAccepted = false; // we need to emit the focus in event manually in order to save the widget as an active // in the property panel before the mouse leave event happens in the viewer. The module - // ask an active widget and change the feature visualization if the widget is not the current one. - if (theSendSignals) - emitFocusInWidget(); + // ask an active widget and change the feature visualization if the widget is not the current + // one. Also we need this widget as active to provide call of processEnter() applyed + // by operation manager to the current widget. If not, the myEditorDialog will stay opened + emitFocusInWidget(); // nds: it seems, that the envents processing is not necessary anymore // White while all events will be processed -- 2.39.2