waveform: working, no cursor

This commit is contained in:
Simon Renblad 2024-01-23 13:45:36 +08:00
parent 53cbd62aa0
commit 78e0810457

View File

@ -518,7 +518,7 @@ class _WaveformModel(QtCore.QAbstractTableModel):
def move(self, src, dest):
if src == dest:
return
if dest == src + 1:
if src < dest:
dest, src = src, dest
self.beginMoveRows(QtCore.QModelIndex(), src, src, QtCore.QModelIndex(), dest)
self.backing_struct.insert(dest, self.backing_struct.pop(src))