mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix saveas as same filename
This commit is contained in:
parent
8d3220ad3d
commit
42108c90b9
1 changed files with 2 additions and 0 deletions
|
@ -853,6 +853,8 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
|||
return
|
||||
if not file.lower().endswith(".anki"):
|
||||
file += ".anki"
|
||||
if os.path.abspath(file) == os.path.abspath(self.deck.path):
|
||||
return self.onSave()
|
||||
if os.path.exists(file):
|
||||
# check for existence after extension
|
||||
if not ui.utils.askUser(
|
||||
|
|
Loading…
Reference in a new issue