mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
only compare deck paths if path available
This commit is contained in:
parent
94f36ac4f2
commit
f8c80dc03d
1 changed files with 3 additions and 2 deletions
|
@ -853,6 +853,7 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
|||
return
|
||||
if not file.lower().endswith(".anki"):
|
||||
file += ".anki"
|
||||
if self.deck.path:
|
||||
if os.path.abspath(file) == os.path.abspath(self.deck.path):
|
||||
return self.onSave()
|
||||
if os.path.exists(file):
|
||||
|
|
Loading…
Reference in a new issue