Salome HOME
A regression correction for the following case:
[modules/shaper.git] / src / ModuleBase / ModuleBase_DoubleSpinBox.cpp
index 851a74834d659b00d26f77acbe345396c217c0d6..dba8c5d0f22aec40deef9ddff35ad64c8fd30f56 100644 (file)
@@ -200,24 +200,18 @@ QString ModuleBase_DoubleSpinBox::removeTrailingZeroes(const QString& src) const
 
 void ModuleBase_DoubleSpinBox::keyPressEvent(QKeyEvent* theEvent)
 {
-  bool isEmitKeyRelease = false;
   switch (theEvent->key()) {
     case Qt::Key_Enter:
     case Qt::Key_Return: {
       // do not react to the Enter key, the property panel processes it
       if (!myIsEmitKeyPressEvent)
         return;
-      else
-        isEmitKeyRelease = true;
     }
     break;
     default:
       break;
   }
   QDoubleSpinBox::keyPressEvent(theEvent);
-
-  if (isEmitKeyRelease)
-    emit enterPressed();
 }
 
 void ModuleBase_DoubleSpinBox::keyReleaseEvent(QKeyEvent* theEvent)