mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:04:39 +02:00
...
This commit is contained in:
parent
55288fcfdc
commit
1c7a90f21e
1 changed files with 2 additions and 0 deletions
|
|
@ -176,6 +176,8 @@ def set_spinbox_value(self, val):
|
|||
if self.allow_undo:
|
||||
cmd = UndoCommand(self, val)
|
||||
self.undo_stack.push(cmd)
|
||||
else:
|
||||
self.undo_stack.clear()
|
||||
if hasattr(self, 'setDateTime'):
|
||||
self.setDateTime(val)
|
||||
elif hasattr(self, 'setValue'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue