diff --git a/GUI/View/Numeric/DoubleSpinBox.cpp b/GUI/View/Numeric/DoubleSpinBox.cpp
index fa989e7fb8571712d27fdf0643a8c34a06e65756..d5a9844e291670170906e9b924c2ccfab944b09c 100644
--- a/GUI/View/Numeric/DoubleSpinBox.cpp
+++ b/GUI/View/Numeric/DoubleSpinBox.cpp
@@ -49,8 +49,11 @@ DoubleSpinBox::DoubleSpinBox(DoubleProperty& d)
     QSignalBlocker b(this);
     lineEdit()->setText(toString(m_valueProperty.value()));
 
-    QObject::connect(this, &QAbstractSpinBox::editingFinished, this,
-                     &DoubleSpinBox::onDisplayValueChanged);
+    QObject::connect(this, &QAbstractSpinBox::editingFinished, [this]() {
+	double val;
+	ASSERT(Base::String::to_double(lineEdit()->text().toStdString(), &val));
+	setValue(val);
+    });
     // setSingleStep(m_valueProperty.step());
 }
 
@@ -82,13 +85,6 @@ void DoubleSpinBox::stepBy(int steps)
         setValue(m_valueProperty / 1.2);
 }
 
-void DoubleSpinBox::onDisplayValueChanged()
-{
-    double val;
-    ASSERT(Base::String::to_double(lineEdit()->text().toStdString(), &val));
-    setValue(val);
-}
-
 void DoubleSpinBox::updateValue()
 {
     QSignalBlocker _(this);
diff --git a/GUI/View/Numeric/DoubleSpinBox.h b/GUI/View/Numeric/DoubleSpinBox.h
index 60e184f249c05796d135992a883cba162644a3d9..020888658245b7b40590dc92b2f08a12ca5a75b9 100644
--- a/GUI/View/Numeric/DoubleSpinBox.h
+++ b/GUI/View/Numeric/DoubleSpinBox.h
@@ -31,7 +31,6 @@ public:
     //! unnoticed changes would take place when just scrolling through the form.
     DoubleSpinBox(DoubleProperty& d);
 
-
     //! Update the shown value to the one contained in the value descriptor.
     //!
     //! No signal will be emitted if the new value has changed.
@@ -46,7 +45,6 @@ private:
     void setValue(double val);
     void wheelEvent(QWheelEvent* event) override;
     void stepBy(int steps) override;
-    void onDisplayValueChanged();
 
     DoubleProperty& m_valueProperty;
 };