diff --git a/src/LunaTranslator/gui/showword.py b/src/LunaTranslator/gui/showword.py index 9b03dc16..c6e92e8d 100644 --- a/src/LunaTranslator/gui/showword.py +++ b/src/LunaTranslator/gui/showword.py @@ -794,8 +794,12 @@ class DynamicTreeModel(QStandardItemModel): self.setData(index, len(childs) > 0, DeterminedhasChildren) thisitem = self.itemFromIndex(index) maketuples = tuple((tuple(_) for _ in globalconfig["wordlabel"])) + dump = set() for c in childs: if isinstance(c, str): + if c in dump: + continue + dump.add(c) t = c has = False else: diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 1a3e093d..2a728a05 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 50) -set(VERSION_PATCH 4) +set(VERSION_PATCH 5) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)