fix progress window not disappearing when importing csv
This commit is contained in:
parent
d60155bc92
commit
f3a8bb28d5
@ -361,6 +361,7 @@ def importFile(mw, file):
|
|||||||
mw.progress.start(immediate=True)
|
mw.progress.start(immediate=True)
|
||||||
try:
|
try:
|
||||||
importer.open()
|
importer.open()
|
||||||
|
mw.progress.finish()
|
||||||
diag = ImportDialog(mw, importer)
|
diag = ImportDialog(mw, importer)
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
mw.progress.finish()
|
mw.progress.finish()
|
||||||
@ -377,7 +378,6 @@ def importFile(mw, file):
|
|||||||
showText(msg)
|
showText(msg)
|
||||||
return
|
return
|
||||||
finally:
|
finally:
|
||||||
mw.progress.finish()
|
|
||||||
importer.close()
|
importer.close()
|
||||||
else:
|
else:
|
||||||
# if it's an apkg/zip, first test it's a valid file
|
# if it's an apkg/zip, first test it's a valid file
|
||||||
|
Loading…
Reference in New Issue
Block a user