beremiz

IDE: fix exception when re-opening previously closed tab
wxPython4
2022-10-21, Edouard Tisserant
d8dc29dfc344
Parents 822fdcef784b
Children cd3d15e8ef42
IDE: fix exception when re-opening previously closed tab
--- 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)