Salome HOME
Issue #2234 The input value widget in the sketcher remains active after validating...
authornds <nds@opencascade.com>
Mon, 31 Jul 2017 06:35:14 +0000 (09:35 +0300)
committernds <nds@opencascade.com>
Mon, 31 Jul 2017 06:35:14 +0000 (09:35 +0300)
emitFocusInWidget unconditionally as we need processEnter calling from operation manager.

src/ModuleBase/ModuleBase_WidgetEditor.cpp

index e017a507d77ba6cc0ef0cc39e8ecb75f7db3b54e..e70fcbb8137fecfcc11e867a21897812bb7ca5b2 100644 (file)
@@ -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