Fix bug while opening project panel
authorlaurent
Mon, 02 Jul 2012 16:02:38 +0200
changeset 786 aaacf208beb9
parent 785 a9bdd7c2f063
child 787 f49875b9e946
child 788 3cec473bef94
Fix bug while opening project panel
ConfigTreeNode.py
ProjectController.py
--- a/ConfigTreeNode.py	Mon Jul 02 12:00:10 2012 +0200
+++ b/ConfigTreeNode.py	Mon Jul 02 16:02:38 2012 +0200
@@ -413,7 +413,9 @@
                 self._View = self.EditorType(app_frame.TabsOpened, self, app_frame)
             
             if self._View is not None:
-                app_frame.EditProjectElement(self._View, self.CTNFullName())
+                if name is None:
+                    name = self.CTNFullName()
+                app_frame.EditProjectElement(self._View, name)
             
             return self._View
         return None
--- a/ProjectController.py	Mon Jul 02 12:00:10 2012 +0200
+++ b/ProjectController.py	Mon Jul 02 16:02:38 2012 +0200
@@ -1025,7 +1025,7 @@
             
             return self._FileEditors[name]
         else:
-            return ConfigTreeNode._OpenView(self, name, onlyopened)
+            return ConfigTreeNode._OpenView(self, self.CTNName(), onlyopened)
 
     def OnCloseEditor(self, view):
         ConfigTreeNode.OnCloseEditor(self, view)