From 38e0d6b9536d1d305d29a8f4751d8a2cd5fcd667 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Tue, 10 Sep 2024 11:37:12 +0800 Subject: [PATCH] moninj: fix pyqt6 context menu exec --- artiq/dashboard/moninj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/dashboard/moninj.py b/artiq/dashboard/moninj.py index 201101838..e5218d8a1 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -847,7 +847,7 @@ class _MonInjDock(QDockWidgetCloseDetect): delete_action = QtGui.QAction("Delete widget", menu) delete_action.triggered.connect(partial(self.delete_widget, index)) menu.addAction(delete_action) - menu.exec_(self.flow.mapToGlobal(pos)) + menu.exec(self.flow.mapToGlobal(pos)) def delete_all_widgets(self): for index in reversed(range(self.flow.count())):