mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
init undo after saveas
This commit is contained in:
parent
880a45eb13
commit
64e22019de
1 changed files with 1 additions and 0 deletions
|
@ -729,6 +729,7 @@ Error was:\n%s\n...\n%s""") % (fmt1, fmt2))
|
||||||
"This file exists. Are you sure you want to overwrite it?"):
|
"This file exists. Are you sure you want to overwrite it?"):
|
||||||
return
|
return
|
||||||
self.deck = self.deck.saveAs(file)
|
self.deck = self.deck.saveAs(file)
|
||||||
|
self.deck.initUndo()
|
||||||
self.updateTitleBar()
|
self.updateTitleBar()
|
||||||
self.moveToState("initial")
|
self.moveToState("initial")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue