mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
don't warn about unsaved decks if the decks are not modified
This commit is contained in:
parent
294ac8045c
commit
dcf65465b3
1 changed files with 2 additions and 2 deletions
|
@ -991,6 +991,8 @@ 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():
|
||||||
|
return True
|
||||||
if not self.deck.path:
|
if not self.deck.path:
|
||||||
if required:
|
if required:
|
||||||
# backed in memory, make sure it's saved
|
# backed in memory, make sure it's saved
|
||||||
|
@ -1002,8 +1004,6 @@ Careful. You're editing an unsaved Deck.<br>
|
||||||
Choose File -> Save to start autosaving<br>
|
Choose File -> Save to start autosaving<br>
|
||||||
your deck."""))
|
your deck."""))
|
||||||
return
|
return
|
||||||
if not self.deck.modifiedSinceSave():
|
|
||||||
return True
|
|
||||||
self.deck.save()
|
self.deck.save()
|
||||||
self.updateTitleBar()
|
self.updateTitleBar()
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue