From f3a8bb28d5cb030b333129194cb31d4a26fefd3d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 29 May 2020 08:40:03 +1000 Subject: [PATCH] fix progress window not disappearing when importing csv --- qt/aqt/importing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/importing.py b/qt/aqt/importing.py index b0feac7c7..dc3a3bc40 100644 --- a/qt/aqt/importing.py +++ b/qt/aqt/importing.py @@ -361,6 +361,7 @@ def importFile(mw, file): mw.progress.start(immediate=True) try: importer.open() + mw.progress.finish() diag = ImportDialog(mw, importer) except UnicodeDecodeError: mw.progress.finish() @@ -377,7 +378,6 @@ def importFile(mw, file): showText(msg) return finally: - mw.progress.finish() importer.close() else: # if it's an apkg/zip, first test it's a valid file