mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
make save work on new deck
This commit is contained in:
parent
2246485587
commit
aba57b2afd
1 changed files with 1 additions and 1 deletions
|
@ -1056,7 +1056,7 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
|
||||||
self.toolTipTimer = None
|
self.toolTipTimer = None
|
||||||
|
|
||||||
def save(self, required=False):
|
def save(self, required=False):
|
||||||
if not self.deck.modifiedSinceSave():
|
if not self.deck.modifiedSinceSave() and self.deck.path:
|
||||||
return True
|
return True
|
||||||
if not self.deck.path:
|
if not self.deck.path:
|
||||||
if required:
|
if required:
|
||||||
|
|
Loading…
Reference in a new issue