fix second error message in case of error appearing too early to have a wx frame
--- a/ProjectController.py Mon Jan 16 01:14:57 2017 +0100
+++ b/ProjectController.py Mon Jan 16 01:19:58 2017 +0100
@@ -1262,7 +1262,7 @@
def _UpdateButtons(self):
self.EnableMethod("_Clean", os.path.exists(self._getBuildPath()))
self.ShowMethod("_showIECcode", os.path.isfile(self._getIECcodepath()))
- if not self.UpdateMethodsFromPLCStatus():
+ if self.AppFrame is not None and not self.UpdateMethodsFromPLCStatus():
self.AppFrame.RefreshStatusToolBar()
def UpdateButtons(self):