Added code to close the oldBibleDB so it can be deleted after conversion

This commit is contained in:
Stevan Pettit 2011-06-09 17:17:04 -04:00
parent 1bdfd60d52
commit 729f38f158
2 changed files with 5 additions and 0 deletions

View File

@ -732,6 +732,7 @@ class BibleUpgradeForm(OpenLPWizard):
self.newbibles[number].session.commit()
if not bible_failed:
self.newbibles[number].create_meta(u'Version', name)
oldbible.close_connection()
delete_file(os.path.join(self.path, filename[0]))
self.incrementProgressBar(unicode(translate(
'BiblesPlugin.UpgradeWizardForm',

View File

@ -1101,3 +1101,7 @@ class OldBibleDB(QtCore.QObject, Manager):
]
else:
return None
def close_connection(self):
self.cursor.close()
self.connection.close()