ProjectController.py
changeset 1638 3f86e9768f14
parent 1634 299a1dde6baa
child 1643 fc39d658bd2f
--- a/ProjectController.py	Tue Jan 17 13:30:38 2017 +0300
+++ b/ProjectController.py	Tue Jan 17 16:34:24 2017 +0300
@@ -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):