SL: Fix move down exception.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-07-26 13:27:18 +02:00
1 parent a9b905a039
commit 003be29eca
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -134,7 +134,7 @@ class TableModel(QAbstractTableModel):
self.layoutChanged.emit()
def move_down(self, row, parent=QModelIndex()):
if row > len(self._sl):
if row + 1 >= len(self._sl):
return
target = row