ConfigTreeNode.py
changeset 2696 9bd639e9124e
parent 2695 a4704fb40b0b
child 2711 ecfb59e4ecb0
child 3096 fc5a0b1ece10
--- a/ConfigTreeNode.py	Wed Nov 18 23:06:16 2020 +0100
+++ b/ConfigTreeNode.py	Fri Nov 20 11:17:40 2020 +0100
@@ -469,15 +469,15 @@
     def GetContextualMenuItems(self):
         return None
 
-    def GetView(self):
-        if self._View is None and self.EditorType is not None:
+    def GetView(self, onlyopened=False):
+        if self._View is None and not onlyopened and self.EditorType is not None:
             app_frame = self.GetCTRoot().AppFrame
             self._View = self.EditorType(app_frame.TabsOpened, self, app_frame)
 
         return self._View
 
     def _OpenView(self, name=None, onlyopened=False):
-        view = self.GetView()
+        view = self.GetView(onlyopened)
 
         if view is not None:
             if name is None: