# HG changeset patch # User laurent # Date 1303396663 -7200 # Node ID 8c7605bbf6730a91982ac24216061391dac66a30 # Parent a31bf722aa8266278cee1a561b7a529120eec6fd Fix Segmentation Fault occurring when trying to open a new editor tab diff -r a31bf722aa82 -r 8c7605bbf673 PLCOpenEditor.py --- a/PLCOpenEditor.py Thu Apr 21 16:06:33 2011 +0200 +++ b/PLCOpenEditor.py Thu Apr 21 16:37:43 2011 +0200 @@ -1165,9 +1165,9 @@ if selected >= 0: window = self.TabsOpened.GetPage(selected) if not window.IsDebugging(): - self.SelectTypesTreeItem(window.GetTagName()) + wx.CallAfter(self.SelectTypesTreeItem, window.GetTagName()) else: - self.SelectInstancesTreeItem(self.InstancesTree.GetRootItem(), window.GetInstancePath()) + wx.CallAfter(self.SelectInstancesTreeItem, self.InstancesTree.GetRootItem(), window.GetInstancePath()) window.RefreshView() if not window.IsDebugging(): self.VariablePanelIndexer.ChangeVariablePanel(window.GetTagName())