make sure to save modified on sync online

This commit is contained in:
Damien Elmes 2008-10-12 05:21:55 +09:00
parent 0da90a47f7
commit 61bb5b9ec9

View file

@ -643,8 +643,9 @@ class AnkiQt(QMainWindow):
if not self.saveAndClose(exit=True): return
self.deck = DeckStorage.Deck()
# ensure all changes come to us
self.deck.syncName = "something"
self.deck.modified = 0
self.deck.s.commit()
self.deck.syncName = "something"
self.deck.lastLoaded = self.deck.modified
if self.config['syncUsername'] and self.config['syncPassword']:
if self.syncDeck(onlyMerge=True):