Fix a logic error, an array index border was wrong.

This commit is contained in:
Patrick Zimmermann 2013-04-16 19:34:07 +02:00
parent e4d3d8d6d2
commit 1bbf52c7bf

View File

@ -147,7 +147,7 @@ class ListPreviewWidget(QtCore.QObject):
"""
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)
else:
self.check_update_selected_slide(row)