From 615807afb4d81f3aec3da82867b6b315174d5eee Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 9 Sep 2016 11:16:43 +0800 Subject: [PATCH] applets: fix indices --- artiq/dashboard/applets_ccb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/dashboard/applets_ccb.py b/artiq/dashboard/applets_ccb.py index 6ae5e7551..c51f8b70c 100644 --- a/artiq/dashboard/applets_ccb.py +++ b/artiq/dashboard/applets_ccb.py @@ -58,7 +58,7 @@ class AppletsCCBDock(applets.AppletsDock): new_parent = None for i in range(parent.childCount()): child = parent.child(i) - if child.ty == "group" and child.text(1) == g: + if child.ty == "group" and child.text(0) == g: new_parent = child break if new_parent is None: @@ -71,7 +71,7 @@ class AppletsCCBDock(applets.AppletsDock): applet = None for i in range(parent.childCount()): child = parent.child(i) - if child.ty == "applet" and child.text(1) == name: + if child.ty == "applet" and child.text(0) == name: applet = child break return parent, applet