From cf02c7100126e24d52e3be32322ba53867b337b5 Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Wed, 21 Jul 2010 13:11:32 +0100 Subject: [PATCH] Fix v2 song DB importing --- openlp/plugins/songs/lib/olpimport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/plugins/songs/lib/olpimport.py b/openlp/plugins/songs/lib/olpimport.py index a73684e00..a2044b497 100644 --- a/openlp/plugins/songs/lib/olpimport.py +++ b/openlp/plugins/songs/lib/olpimport.py @@ -169,7 +169,7 @@ class OpenLPSongImport(object): else: new_song.authors.append(Author.populate( display_name=u'Author Unknown')) - if song.song_book_id != 0: + if song.book: existing_song_book = self.master_manager.get_object_filtered( Book, Book.name == song.book.name) if existing_song_book: