From: nds Date: Mon, 31 Jul 2017 06:35:14 +0000 (+0300) Subject: Issue #2234 The input value widget in the sketcher remains active after validating... X-Git-Tag: V_2.7.2~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8e3a78ec70078f64c13e86b719c82dc6ca3e7e7f;p=modules%2Fshaper.git 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. --- 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