Fix bug when opening specific file editor
authorLaurent Bessard
Fri, 05 Jul 2013 00:10:29 +0200
changeset 1274 6b38acbe1fd0
parent 1273 921858d68a13
child 1275 8d4de18c9f29
Fix bug when opening specific file editor
Beremiz.py
--- a/Beremiz.py	Thu Jul 04 11:18:04 2013 +0200
+++ b/Beremiz.py	Fri Jul 05 00:10:29 2013 +0200
@@ -1073,7 +1073,7 @@
                               [(word, ITEM_CONFNODE) for word in tagname.split(".")])
                 elif words[0] == "R":
                     return self.RecursiveProjectTreeItemSelection(root, [(words[2], ITEM_RESOURCE)])
-                else:
+                elif not os.path.exists(words[0]):
                     IDEFrame.SelectProjectTreeItem(self, tagname)
             
     def GetAddConfNodeFunction(self, name, confnode=None):