forked from M-Labs/artiq
1
0
Fork 0

applets: fix ccb group creation

This commit is contained in:
Sebastien Bourdeauducq 2016-09-09 13:07:36 +08:00
parent 4bdbc5b259
commit 769b1e2393
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ class AppletsCCBDock(applets.AppletsDock):
for i in range(parent.childCount()): for i in range(parent.childCount()):
child = parent.child(i) child = parent.child(i)
if child.ty == "group" and child.text(0) == g: 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: if c_ccbp:
ccbp = c_ccbp ccbp = c_ccbp
new_parent = child new_parent = child
@ -137,7 +137,7 @@ class AppletsCCBDock(applets.AppletsDock):
break break
if new_parent is None: if new_parent is None:
if create_groups: if create_groups:
new_parent = self.new_group(g, parent) new_parent = self.new_group(g, parent=parent)
else: else:
return None, None return None, None
parent = new_parent parent = new_parent