diff --git a/openlp/plugins/songs/lib/textlistdata.py b/openlp/plugins/songs/lib/textlistdata.py index 547e978f8..2ede4a242 100644 --- a/openlp/plugins/songs/lib/textlistdata.py +++ b/openlp/plugins/songs/lib/textlistdata.py @@ -59,6 +59,8 @@ class TextListData(QtCore.QAbstractListModel): if row > len(self.items): # if the last row is selected and deleted, we then get called with an empty row! return QtCore.QVariant() if role == QtCore.Qt.DisplayRole: + if row == self.rowCount(None): + row -= 1 retval = self.items[row][1] else: retval = QtCore.QVariant()