Close db session after import to unlock file on windows

This commit is contained in:
Tomas Groth 2014-11-06 14:14:05 +01:00
parent fbeb0222a8
commit 8f4ccc5426

View File

@ -217,4 +217,5 @@ class OpenLPSongImport(SongImport):
self.import_wizard.increment_progress_bar(WizardStrings.ImportingType % new_song.title)
if self.stop_import_flag:
break
self.source_session.close()
engine.dispose()