From 924482ac517f08a994de63c6f697d9fee0208660 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sun, 14 Aug 2011 15:49:03 +0200 Subject: [PATCH] prevent closing an already closed database --- openlp/plugins/bibles/forms/bibleupgradeform.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openlp/plugins/bibles/forms/bibleupgradeform.py b/openlp/plugins/bibles/forms/bibleupgradeform.py index d78124c6c..b5bc6ed3d 100644 --- a/openlp/plugins/bibles/forms/bibleupgradeform.py +++ b/openlp/plugins/bibles/forms/bibleupgradeform.py @@ -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