This commit is contained in:
恍兮惚兮 2024-12-26 23:41:51 +08:00
parent 2a245d7832
commit 07cf4b7d9b

View File

@ -970,11 +970,22 @@ class showdiction(QWidget):
self.model.clear()
root = self.model.invisibleRootItem()
rows = []
cishus = []
for k in globalconfig["cishuvisrank"]:
cishu = gobject.baseobject.cishus[k]
if not hasattr(cishu, "tree"):
continue
cishus.append(cishu)
if len(cishus) == 1:
try:
for node in cishus[0].tree().childrens():
item = QStandardItem(node.text())
item.setData(node, DictNodeRole)
rows.append(item)
except:
print_exc()
else:
for cishu in cishus:
try:
tree = cishu.tree()
except: