Bug on FileMenu not refreshed when modifications fixed
authorlaurent
Wed, 16 Dec 2009 15:20:56 +0100
changeset 502 8137a7face88
parent 498 5f90349529c9
child 503 52689bda4686
Bug on FileMenu not refreshed when modifications fixed
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Wed Dec 16 15:12:59 2009 +0100
+++ b/PLCOpenEditor.py	Wed Dec 16 15:20:56 2009 +0100
@@ -2647,6 +2647,7 @@
             self.SaveProjectAs()
         else:
             self.RefreshTitle()
+            self.RefreshFileMenu()
     
     def SaveProjectAs(self):
         filepath = self.Controler.GetFilePath()
@@ -2664,6 +2665,7 @@
             else:
                 self.ShowErrorMessage(_("\"%s\" is not a valid folder!")%os.path.dirname(filepath))
             self.RefreshTitle()
+            self.RefreshFileMenu()
         dialog.Destroy()
 
 #-------------------------------------------------------------------------------