Fix off-by-one saving songs

bzr-revno: 893
This commit is contained in:
Jon Tibble 2010-06-28 15:19:53 +01:00
commit 5e14dbda82

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]