IDE: fix exception when re-opening previously closed tab wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Fri, 21 Oct 2022 17:52:45 +0200
branchwxPython4
changeset 3641 d8dc29dfc344
parent 3640 822fdcef784b
child 3642 cd3d15e8ef42
IDE: fix exception when re-opening previously closed tab
ConfigTreeNode.py
--- a/ConfigTreeNode.py	Fri Oct 21 16:29:07 2022 +0200
+++ b/ConfigTreeNode.py	Fri Oct 21 17:52:45 2022 +0200
@@ -471,7 +471,7 @@
         return None
 
     def GetView(self, onlyopened=False):
-        if self._View is None and not onlyopened and self.EditorType is not None:
+        if not self._View and not onlyopened and self.EditorType is not None:
             app_frame = self.GetCTRoot().AppFrame
             self._View = self.EditorType(app_frame.TabsOpened, self, app_frame)