mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
SL: Fix move down exception.
This commit is contained in:
1 parent
a9b905a039
commit
003be29eca
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user