diff --git a/README.md b/README.md index 2d70952b..d5bdfcaf 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ CAD program, and create G-Code for Isolation routing. 15.11.2019 - added all the recognized extensions to the save dialog filters; latest extension used will be preselected next time a save operation occur +- fixed issue #335. The FCDoubleSPinBox (and FCSpinBox) value was not used when the user entered data but just hovered away the mouse expecting the data to be already confirmed 14.11.2019 diff --git a/flatcamGUI/GUIElements.py b/flatcamGUI/GUIElements.py index b5eb7386..f98039f9 100644 --- a/flatcamGUI/GUIElements.py +++ b/flatcamGUI/GUIElements.py @@ -542,6 +542,7 @@ class FCSpinner(QtWidgets.QSpinBox): def on_edit_finished(self): self.clearFocus() + self.returnPressed.emit() # def mousePressEvent(self, e, parent=None): # super(FCSpinner, self).mousePressEvent(e) # required to deselect on 2e click @@ -593,6 +594,7 @@ class FCDoubleSpinner(QtWidgets.QDoubleSpinBox): def on_edit_finished(self): self.clearFocus() + self.returnPressed.emit() def eventFilter(self, object, event): if event.type() == QtCore.QEvent.MouseButtonPress: