From f6568cb5b170bfcb6cebff8cd7286ad783840d1c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 19 Oct 2008 13:09:37 +0900 Subject: [PATCH] remove redundant cramming conditions --- ankiqt/ui/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index bc664dafa..708555ed5 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -588,14 +588,14 @@ class AnkiQt(QMainWindow): "(Auto)save and close. Prompt if necessary. True if okay to proceed." if self.deck is not None: # sync (saving automatically) - if self.config['syncOnClose'] and self.deck.syncName and not cramming: + if self.config['syncOnClose'] and self.deck.syncName: self.syncDeck(False, reload=False) while self.deckPath: self.app.processEvents() time.sleep(0.1) return True # save - if self.deck.modifiedSinceSave() and not cramming: + if self.deck.modifiedSinceSave(): if self.config['saveOnClose'] or self.config['syncOnClose']: self.saveDeck() else: