From a6b676039be45c6d4a68dcf6cf649b1b19d87769 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 16 Apr 2020 08:10:17 +1000 Subject: [PATCH] work around full sync on start closing the app This is just a temporary solution until the syncing code can be reworked. https://anki.tenderapp.com/discussions/ankidesktop/39761-anki-crashing-after-sync-and-download --- qt/aqt/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 5f94561da..73a8ccd27 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -868,8 +868,10 @@ title="%s" %s>%s""" % ( from aqt.sync import SyncManager self.state = "sync" + self.app.setQuitOnLastWindowClosed(False) self.syncer = SyncManager(self, self.pm) self.syncer.sync() + self.app.setQuitOnLastWindowClosed(True) # Tools ##########################################################################