This commit is contained in:
test123456654321 2024-10-26 18:54:49 +08:00
parent e6fb16aebf
commit 407b59c1af
2 changed files with 5 additions and 1 deletions

View File

@ -794,8 +794,12 @@ class DynamicTreeModel(QStandardItemModel):
self.setData(index, len(childs) > 0, DeterminedhasChildren) self.setData(index, len(childs) > 0, DeterminedhasChildren)
thisitem = self.itemFromIndex(index) thisitem = self.itemFromIndex(index)
maketuples = tuple((tuple(_) for _ in globalconfig["wordlabel"])) maketuples = tuple((tuple(_) for _ in globalconfig["wordlabel"]))
dump = set()
for c in childs: for c in childs:
if isinstance(c, str): if isinstance(c, str):
if c in dump:
continue
dump.add(c)
t = c t = c
has = False has = False
else: else:

View File

@ -29,7 +29,7 @@ include(generate_product_version)
set(VERSION_MAJOR 5) set(VERSION_MAJOR 5)
set(VERSION_MINOR 50) set(VERSION_MINOR 50)
set(VERSION_PATCH 4) set(VERSION_PATCH 5)
add_library(pch pch.cpp) add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h) target_precompile_headers(pch PUBLIC pch.h)