From 8f7ef6ed2ce85701ce1594d95d15e8a071731c15 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 9 Apr 2020 14:19:20 +1000 Subject: [PATCH] make sure progress stops when collection corrupt message shown --- qt/aqt/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index c26ea2f6f..36de578ea 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -514,6 +514,7 @@ close the profile or restart Anki.""" corrupt = True finally: self.col = None + self.progress.finish() if corrupt: showWarning( _( @@ -527,8 +528,6 @@ from the profile screen." if not corrupt and not self.restoringBackup: self.backup() - self.progress.finish() - # Backup and auto-optimize ##########################################################################