Fix bug editor toolbar wrong size after restoring perspective
authorLaurent Bessard
Mon, 11 Jun 2012 01:25:32 +0200
changeset 709 2507f2736a3e
parent 708 cf8f5749558d
child 710 365bb7496697
Fix bug editor toolbar wrong size after restoring perspective
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Sun Jun 10 20:21:07 2012 +0200
+++ b/PLCOpenEditor.py	Mon Jun 11 01:25:32 2012 +0200
@@ -898,6 +898,8 @@
                                          (self.RightNoteBook, "rightnotebook")]:
                 self.LoadTabLayout(notebook, notebooks.get(entry_name))
     
+            self._Refresh(EDITORTOOLBAR)
+    
     def RestoreLastState(self):
         frame_size = None
         if self.Config.HasEntry("framesize"):
@@ -939,6 +941,8 @@
             self.ResetPerspective()
         
         self.LoadProjectLayout()
+        
+        self._Refresh(EDITORTOOLBAR)
     
     def SaveLastState(self):
         if not self.IsMaximized():