diff --git a/artiq/dashboard/waveform.py b/artiq/dashboard/waveform.py index 26931d974..4345d3787 100644 --- a/artiq/dashboard/waveform.py +++ b/artiq/dashboard/waveform.py @@ -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))