diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 7c0488e31..0398a8192 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -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(