2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 19:28:26 +08:00

applets: fix indices

This commit is contained in:
Sebastien Bourdeauducq 2016-09-09 11:16:43 +08:00
parent ebb0ba17f5
commit 615807afb4

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