LPCBeremiz.py
changeset 599 c7be4d09c5f4
parent 598 6c919bc1551d
child 625 08d4cc1ceb9b
--- a/LPCBeremiz.py	Thu Apr 21 11:06:43 2011 +0200
+++ b/LPCBeremiz.py	Thu Apr 21 12:35:27 2011 +0200
@@ -444,9 +444,15 @@
             return PluginsRoot._getBuildPath(self)
 
     def _build(self):
+        save = self.ProjectTestModified()
+        if save:
+            self.SaveProject()
+            self.AppFrame._Refresh(TITLE, FILEMENU)
         if self.BuildPath is not None:
             mycopytree(self.OrigBuildPath, self.BuildPath)
         PluginsRoot._build(self)
+        if save:
+            wx.CallAfter(self.AppFrame.RefreshAll)
     
     def SetProjectName(self, name):
         return self.Project.setname(name)