forked from openlp/openlp
test close database
This commit is contained in:
parent
c435127585
commit
b5c392112b
@ -324,7 +324,6 @@ class BibleUpgradeForm(OpenLPWizard):
|
|||||||
oldbible = OldBibleDB(self.mediaItem, path=self.path,
|
oldbible = OldBibleDB(self.mediaItem, path=self.path,
|
||||||
file=filename)
|
file=filename)
|
||||||
oldname = oldbible.get_name()
|
oldname = oldbible.get_name()
|
||||||
oldbible.close_cursor()
|
|
||||||
if not version_name:
|
if not version_name:
|
||||||
critical_error_message_box(UiStrings().EmptyField,
|
critical_error_message_box(UiStrings().EmptyField,
|
||||||
translate('BiblesPlugin.UpgradeWizardForm',
|
translate('BiblesPlugin.UpgradeWizardForm',
|
||||||
|
@ -499,6 +499,12 @@ class BibleDB(QtCore.QObject, Manager):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def close_database(self):
|
||||||
|
"""
|
||||||
|
Close database connection.
|
||||||
|
"""
|
||||||
|
self.session.close()
|
||||||
|
|
||||||
def dump_bible(self):
|
def dump_bible(self):
|
||||||
"""
|
"""
|
||||||
Utility debugging method to dump the contents of a bible.
|
Utility debugging method to dump the contents of a bible.
|
||||||
|
Loading…
Reference in New Issue
Block a user