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,8 +853,9 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
||||||
return
|
return
|
||||||
if not file.lower().endswith(".anki"):
|
if not file.lower().endswith(".anki"):
|
||||||
file += ".anki"
|
file += ".anki"
|
||||||
if os.path.abspath(file) == os.path.abspath(self.deck.path):
|
if self.deck.path:
|
||||||
return self.onSave()
|
if os.path.abspath(file) == os.path.abspath(self.deck.path):
|
||||||
|
return self.onSave()
|
||||||
if os.path.exists(file):
|
if os.path.exists(file):
|
||||||
# check for existence after extension
|
# check for existence after extension
|
||||||
if not ui.utils.askUser(
|
if not ui.utils.askUser(
|
||||||
|
|
Loading…
Reference in a new issue