From ee93df9b08c65b2c5b42f0b2e7c413fed9ca7a37 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Wed, 11 Feb 2009 19:08:18 +0000 Subject: [PATCH] OOPS missed it bzr-revno: 308 --- openlp/plugins/bibles/lib/bibleOSISimpl.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/openlp/plugins/bibles/lib/bibleOSISimpl.py b/openlp/plugins/bibles/lib/bibleOSISimpl.py index c9cbea933..4b4d526c8 100644 --- a/openlp/plugins/bibles/lib/bibleOSISimpl.py +++ b/openlp/plugins/bibles/lib/bibleOSISimpl.py @@ -18,6 +18,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA import logging from openlp.plugins.bibles.lib.bibleDBimpl import BibleDBImpl from openlp.core.lib import Receiver +from PyQt4 import QtCore class BibleOSISImpl(): global log @@ -31,8 +32,12 @@ class BibleOSISImpl(): for line in fbibles: p = line.split(",") self.booksOfBible[p[0]] = p[1].replace('\n', '') - self.abbrevOfBible[p[0]] = p[2].replace('\n', '') + self.abbrevOfBible[p[0]] = p[2].replace('\n', '') + self.loadbible = True + QtCore.QObject.connect(Receiver().get_receiver(),QtCore.SIGNAL("openlpstopimport"),self.stop_import) + def stop_import(self): + self.loadbible= False def load_data(self, osisfile, dialogobject=None): osis=open(osisfile, 'r') @@ -43,6 +48,8 @@ class BibleOSISImpl(): verseText = "