forked from openlp/openlp
Fix a logic error, an array index border was wrong.
This commit is contained in:
parent
e4d3d8d6d2
commit
1bbf52c7bf
@ -147,7 +147,7 @@ class ListPreviewWidget(QtCore.QObject):
|
|||||||
"""
|
"""
|
||||||
Utility method to update the selected slide in the list.
|
Utility method to update the selected slide in the list.
|
||||||
"""
|
"""
|
||||||
if row > self.preview_table_widget.rowCount():
|
if row >= self.preview_table_widget.rowCount():
|
||||||
self.preview_table_widget.selectRow(self.preview_table_widget.rowCount() - 1)
|
self.preview_table_widget.selectRow(self.preview_table_widget.rowCount() - 1)
|
||||||
else:
|
else:
|
||||||
self.check_update_selected_slide(row)
|
self.check_update_selected_slide(row)
|
||||||
|
Loading…
Reference in New Issue
Block a user