Fix for bug #1073061 where the song importer would crash when no song order was supplied.

bzr-revno: 2099
Fixes: https://launchpad.net/bugs/1073061
This commit is contained in:
Philip Ridout 2012-11-03 22:33:57 +02:00 committed by Raoul Snyman
commit 3038a5d02e

View File

@ -274,9 +274,10 @@ class SongImport(QtCore.QObject):
""" """
Repeat the previous verse in the verse order Repeat the previous verse in the verse order
""" """
self.verseOrderListGenerated.append( if self.verseOrderListGenerated:
self.verseOrderListGenerated[-1]) self.verseOrderListGenerated.append(
self.verseOrderListGeneratedUseful = True self.verseOrderListGenerated[-1])
self.verseOrderListGeneratedUseful = True
def checkComplete(self): def checkComplete(self):
""" """