Bug #1907856: Typing in number fails to replace undefined integers

This commit is contained in:
Charles Haley 2020-12-12 22:16:04 +00:00
parent e9b6e53ef1
commit 87eb1fb164

View File

@ -145,6 +145,8 @@ def make_clearing_spinbox(spinbox):
if ev.key() == Qt.Key.Key_Space:
self.clear_to_undefined()
else:
if self.value() == self.minimum():
self.clear()
return spinbox.keyPressEvent(self, ev)
return SpinBox