mirror of https://github.com/m-labs/artiq.git
applets: fix indices
This commit is contained in:
parent
ebb0ba17f5
commit
615807afb4
|
@ -58,7 +58,7 @@ class AppletsCCBDock(applets.AppletsDock):
|
||||||
new_parent = None
|
new_parent = None
|
||||||
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(1) == g:
|
if child.ty == "group" and child.text(0) == g:
|
||||||
new_parent = child
|
new_parent = child
|
||||||
break
|
break
|
||||||
if new_parent is None:
|
if new_parent is None:
|
||||||
|
@ -71,7 +71,7 @@ class AppletsCCBDock(applets.AppletsDock):
|
||||||
applet = None
|
applet = None
|
||||||
for i in range(parent.childCount()):
|
for i in range(parent.childCount()):
|
||||||
child = parent.child(i)
|
child = parent.child(i)
|
||||||
if child.ty == "applet" and child.text(1) == name:
|
if child.ty == "applet" and child.text(0) == name:
|
||||||
applet = child
|
applet = child
|
||||||
break
|
break
|
||||||
return parent, applet
|
return parent, applet
|
||||||
|
|
Loading…
Reference in New Issue