mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
close deck windows on saveas
This commit is contained in:
parent
bfc852a892
commit
664b221c58
1 changed files with 1 additions and 0 deletions
|
|
@ -1015,6 +1015,7 @@ your deck."""))
|
|||
if not ui.utils.askUser(
|
||||
"This file exists. Are you sure you want to overwrite it?"):
|
||||
return
|
||||
self.closeAllDeckWindows()
|
||||
self.deck = self.deck.saveAs(file)
|
||||
self.deck.initUndo()
|
||||
self.updateTitleBar()
|
||||
|
|
|
|||
Loading…
Reference in a new issue