Fixing bug in project modified state not well reported when modifications made in plugins informations
authorlaurent
Tue, 08 Nov 2011 22:04:07 +0100
changeset 631 9a9636e16d15
parent 630 91b2ae63ea3d
child 632 3c9fbe483124
Fixing bug in project modified state not well reported when modifications made in plugins informations
Beremiz.py
--- a/Beremiz.py	Tue Nov 08 22:01:39 2011 +0100
+++ b/Beremiz.py	Tue Nov 08 22:04:07 2011 +0100
@@ -489,7 +489,7 @@
         name = _("Beremiz")
         if self.PluginRoot is not None:
             projectname = self.PluginRoot.GetProjectName()
-            if self.PluginRoot.PlugTestModified():
+            if self.PluginRoot.ProjectTestModified():
                 projectname = "~%s~" % projectname
             self.SetTitle("%s - %s" % (name, projectname))
         else:
@@ -615,7 +615,7 @@
                 self.FileMenu.Enable(wx.ID_PREVIEW, False)
                 self.FileMenu.Enable(wx.ID_PRINT, False)
             self.FileMenu.Enable(wx.ID_PAGE_SETUP, True)
-            self.FileMenu.Enable(wx.ID_SAVE, self.PluginRoot.PlugTestModified())
+            self.FileMenu.Enable(wx.ID_SAVE, self.PluginRoot.ProjectTestModified())
             self.FileMenu.Enable(wx.ID_SAVEAS, True)
             self.FileMenu.Enable(wx.ID_PROPERTIES, True)
             self.FileMenu.Enable(wx.ID_CLOSE_ALL, True)