mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bug #1907856: Typing in number fails to replace undefined integers
This commit is contained in:
parent
e9b6e53ef1
commit
87eb1fb164
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user