Fix off-by-one in song saving

This commit is contained in:
Jon Tibble 2010-06-28 13:43:14 +01:00
parent b9896bb915
commit f0896422d4
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
self.loadBooks()
else:
return
elif item > 1:
elif item >= 1:
item = int(self.SongbookCombo.currentIndex())
self.song.song_book_id = \
(self.SongbookCombo.itemData(item)).toInt()[0]