fix saveas as same filename

This commit is contained in:
Damien Elmes 2009-01-21 02:05:23 +09:00
parent 8d3220ad3d
commit 42108c90b9

View file

@ -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(