QScintilla/Editor.py

changeset 3395
7e923cf9918f
parent 3394
d1d4d79b4f11
child 3438
29717a5e8b97
equal deleted inserted replaced
3394:d1d4d79b4f11 3395:7e923cf9918f
4698 4698
4699 def __showContextMenu(self): 4699 def __showContextMenu(self):
4700 """ 4700 """
4701 Private slot handling the aboutToShow signal of the context menu. 4701 Private slot handling the aboutToShow signal of the context menu.
4702 """ 4702 """
4703 # TODO: set enable status of self.menuActs["Reopen"] 4703 self.menuActs["Reopen"].setEnabled(
4704 not self.isModified() and bool(self.fileName))
4704 self.menuActs["Save"].setEnabled(self.isModified()) 4705 self.menuActs["Save"].setEnabled(self.isModified())
4705 self.menuActs["Undo"].setEnabled(self.isUndoAvailable()) 4706 self.menuActs["Undo"].setEnabled(self.isUndoAvailable())
4706 self.menuActs["Redo"].setEnabled(self.isRedoAvailable()) 4707 self.menuActs["Redo"].setEnabled(self.isRedoAvailable())
4707 self.menuActs["Revert"].setEnabled(self.isModified()) 4708 self.menuActs["Revert"].setEnabled(self.isModified())
4708 if not self.miniMenu: 4709 if not self.miniMenu:

eric ide

mercurial