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()):
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