From 769b1e23933930c095f3eddf5be1e60c3b2078af Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 9 Sep 2016 13:07:36 +0800 Subject: [PATCH] applets: fix ccb group creation --- 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 0f2c50fc8..791c497bb 100644 --- a/artiq/dashboard/applets_ccb.py +++ b/artiq/dashboard/applets_ccb.py @@ -110,7 +110,7 @@ class AppletsCCBDock(applets.AppletsDock): for i in range(parent.childCount()): child = parent.child(i) if child.ty == "group" and child.text(0) == g: - c_ccbp = self.table.itemWidget(child, 1).text() + c_ccbp = child.text(1) if c_ccbp: ccbp = c_ccbp new_parent = child @@ -137,7 +137,7 @@ class AppletsCCBDock(applets.AppletsDock): break if new_parent is None: if create_groups: - new_parent = self.new_group(g, parent) + new_parent = self.new_group(g, parent=parent) else: return None, None parent = new_parent