mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
55288fcfdc
commit
1c7a90f21e
@ -176,6 +176,8 @@ def make_undoable(spinbox):
|
|||||||
if self.allow_undo:
|
if self.allow_undo:
|
||||||
cmd = UndoCommand(self, val)
|
cmd = UndoCommand(self, val)
|
||||||
self.undo_stack.push(cmd)
|
self.undo_stack.push(cmd)
|
||||||
|
else:
|
||||||
|
self.undo_stack.clear()
|
||||||
if hasattr(self, 'setDateTime'):
|
if hasattr(self, 'setDateTime'):
|
||||||
self.setDateTime(val)
|
self.setDateTime(val)
|
||||||
elif hasattr(self, 'setValue'):
|
elif hasattr(self, 'setValue'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user