forked from M-Labs/artiq
1
0
Fork 0

applets: fix indices

This commit is contained in:
Sebastien Bourdeauducq 2016-09-09 11:16:43 +08:00
parent ebb0ba17f5
commit 615807afb4
1 changed files with 2 additions and 2 deletions

View File

@ -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