prevent closing an already closed database

This commit is contained in:
Andreas Preikschat 2011-08-14 15:49:03 +02:00
parent ec93173891
commit 924482ac51
1 changed files with 3 additions and 0 deletions

View File

@ -496,6 +496,9 @@ class BibleUpgradeForm(OpenLPWizard):
# Close the previous bible's connection.
if oldBible is not None:
oldBible.close_connection()
# Set to None to make obvious that we have already closed the
# database.
oldBible = None
if self.stop_import_flag:
self.success[number] = False
break