fixed openlp bible importer progress bar

This commit is contained in:
Andreas Preikschat 2010-12-11 13:18:35 +01:00
parent 2de4edfe56
commit 0cae712cc4
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class OpenLP1Bible(BibleDB):
# Create all books.
cursor.execute(u'SELECT id, testament_id, name, abbreviation FROM book')
books = cursor.fetchall()
self.wizard.importProgressBar.setMaximum(len(books) + 1)
for book in books:
if self.stop_import_flag:
connection.close()