--- a/controls/SearchResultPanel.py Mon Feb 19 13:24:57 2018 +0100
+++ b/controls/SearchResultPanel.py Mon Feb 19 15:14:30 2018 +0100
@@ -32,6 +32,7 @@
from PLCControler import *
from util.BitmapLibrary import GetBitmap
+from plcopen.types_enums import GetElementType
def GenerateName(infos):
@@ -196,7 +197,7 @@
words = tagname.split("::")
- element_type = self.ParentWindow.Controler.GetElementType(tagname)
+ element_type = GetElementType(tagname)
if element_type == ITEM_POU:
element_type = self.ParentWindow.Controler.GetPouType(words[1])