diff -r 8e19df12b596 -r 3c4c1e076a34 ProjectController.py --- a/ProjectController.py Sun Sep 23 23:34:04 2012 +0200 +++ b/ProjectController.py Sun Sep 23 23:56:53 2012 +0200 @@ -408,7 +408,7 @@ self.AppFrame.RefreshPouInstanceVariablesPanel() self.AppFrame.RefreshFileMenu() self.AppFrame.RefreshEditMenu() - self.AppFrame.RefreshEditor() + wx.CallAfter(self.AppFrame.RefreshEditor) def GetVariableLocationTree(self): '''