From 78e0810457edd98a2ee022852459fe574ae4844f Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Tue, 23 Jan 2024 13:45:36 +0800 Subject: [PATCH] waveform: working, no cursor --- artiq/dashboard/waveform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))