Explorar o código

- 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

Marius Stanciu %!s(int64=6) %!d(string=hai) anos
pai
achega
3df0c8871c
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  1. 1 0
      README.md
  2. 2 0
      flatcamGUI/GUIElements.py

+ 1 - 0
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
 

+ 2 - 0
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: