mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32: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,8 +853,9 @@ 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 self.deck.path:
|
||||
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