Remove useless test on refreshing edit menu
authorlbessard
Mon, 30 Jun 2008 14:27:30 +0200
changeset 185 042ab0643b28
parent 184 00e79fae72cb
child 186 ed2a408d79b6
Remove useless test on refreshing edit menu
plugins/c_ext/CFileEditor.py
--- a/plugins/c_ext/CFileEditor.py	Sat Jun 28 19:06:48 2008 +0200
+++ b/plugins/c_ext/CFileEditor.py	Mon Jun 30 14:27:30 2008 +0200
@@ -1052,10 +1052,9 @@
 #-------------------------------------------------------------------------------
 
     def RefreshEditMenu(self):
-        if self.EditMenu:
-            undo, redo = self.Controler.GetBufferState()
-            self.EditMenu.Enable(wx.ID_UNDO, undo)
-            self.EditMenu.Enable(wx.ID_REDO, redo)
+        undo, redo = self.Controler.GetBufferState()
+        self.EditMenu.Enable(wx.ID_UNDO, undo)
+        self.EditMenu.Enable(wx.ID_REDO, redo)
 
     def OnRefreshMenu(self, event):
         selected = self.GetPageSelection()