beremiz

4485e6478b91
Parents 3bffe3bd8d78
Children a0c7a6cb1690
fix doubling search results in Search Result Panel

After fix local search in SFC POU in 163d3a8, search results tree assemble with "children" branches: results of search in actions anf transitions. Deleted code doubling this search results into one more separate branch, so it's useless.
--- a/controls/SearchResultPanel.py Thu Dec 29 18:41:38 2016 +0300
+++ b/controls/SearchResultPanel.py Tue Jan 10 14:08:49 2017 +0300
@@ -232,19 +232,6 @@
break
if element_type == ITEM_RESOURCE:
search_results_tree_children.append(element_infos)
- else:
- _tagname = self.ParentWindow.Controler.ComputePouName(words[1])
- _element_type = self.ParentWindow.Controler.GetPouType(words[1])
-
- _element_infos = {"name": words[1],
- "type": _element_type,
- "data": _tagname,
- "text": None,
- "matches": 1,
- "children": [element_infos]}
-
- search_results_tree_children.append(_element_infos)
-
else:
search_results_tree_children.append(element_infos)